Registered Member
|
Currently, when in KRunner, typing, "175 cm in feet" shows 175 cm in feet. However, it shows the decimal place of the foot instead of the equivalent in inches.
Me being a stupid brit, it would be nice to be able to type, "175 cm in feet and inches" in order to get the full imperial measurement.
Madman, proud to be a member of KDE forums since 2008-Oct.
|
Registered Member
|
Agreed, this would be useful, I often need to convert from feet and inches to SI
Proudly dual-booting openSUSE 11.1 with KDE 4.3 and Windows Vista on a Toshiba A205-S4577 since July 2007.
|
Registered Member
|
I didn't know about this feature at all! That makes me a good tester for the least surprise principle, which should be observed. I tried several combinations with following results:
|
Registered Member
|
I think this can be generalized into being able to split units into groups.
So for instance 5 a in b c should do the following: 1. Figure out which is unit is larger, b or c 2. Convert 5 a to b 3. Convert everything after the decimal of b to c 4. Display the everything before the decimal as b, everything after as c. So for example if you typed ".005555 km in m cm" it would display "5 m 55.5 cm". ".005 km in m cm" would display "5 m 0 cm". That way the runner wouldn't have to worry about anything specific about the imperial unit system, it would be a general approach for breaking up units. This isn't very useful for metric units as I used in this example, but for imperial units and angle units it would be very useful. You could also string this together further, so for instance "5.55555555 km in km m cm mm" would display "5 km 555 m 55 cm 5.55 mm".
Last edited by TheBlackCat on Thu May 07, 2009 4:31 pm, edited 1 time in total.
Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965 |
Registered Member
|
Question: how easy would this be to implement?
Madman, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]