Wednesday, May 15, 2013

Converter integration with Calculator

I've integrated the Converter with the Calculator to allow passing values between them.  This allows for entry and editing of values in standard scientific notation (ex: 1.234E18 [1.234 x 10^18]) and for performing calculations on values in the Calculator and passing them back into the Converter.

For example, suppose you have the following conversion from light years to meters:


You can then change the light-years value by first swapping the units (touch either "From" or "To"):



Then touch the [Calculator] button to send the light-years value to the Calculator:



Perform a calculation on the value (ex: divide it by 1000):



You may then touch the result value in the display area to copy the value to the clipboard, touch the [Done] button, and paste the new value into the Converter's "From" value box:



A new conversion will be performed and the result will be displayed automatically:



This is of course a simplistic, contrived example.  Another use of the Calculator integration is to enter a number in scientific notation.  For example, you may touch the [Calculator] button, enter a new value, and touch it to copy to the clipboard, such as:



Touch [Done] to return to the Converter and paste the new value into the "From" value box.  This will automatically perform a new conversion:


More later ...

Current Converter status

In terms of time, I'm about half way done with the Converter screen in Cool Grader.  The Converter now supports converting between the following units:  
 
Mass Length Volume
carat
grain
gram
hundredweight long UK
hundredweight short US
kilogram
long ton
metric hundredweight
microgram
milligram
nanogram
Newton
ounce
pennyweight
picogram
pound
short ton
stone
tonne
troy ounce
troy pound
astronomical unit
chain
centimeter
decimeter
foot
furlong
inch
kilometer
league
light year
meter
microinch
micrometer
micron
mile
millimeter
nanometer
nautical mile
parsec
picometer
survey foot
survey mile
survey yard
yard
bushel (Imperial)
bushel (US)
cubic centimeter
cubic decimeter
cubic foot
cubic inch
cubic meter
cubic millimeter
cubic yard
cup (US)
cup (metric)
dry gallon
dry pint
dry quart
fluid ounce (Imperial)
fluid ounce (US)
gallon (Imperial)
gallon (US)
gill (Imperial)
gill (US)
kiloliter
liter
microliter
milliliter
peck (Imperial)
peck (US)
pint (Imperial)
pint (US)
quart (Imperial)
quart (US)
tablespoon
tablespoon (Australian)
teaspoon
Area (incomplete)    
acre
hectare
section
square foot
square inch
square meter
square mile
square yard
survey acre