Share My Creation Unit Converter (Source Code incl. B4i/B4A/B4J)

hi,

as few of you already know i am building a chemist calculator in b4i (95% finished)
i also included a unit converter in my app and i wanted to share it here.

its a class, the good thing in classes is that you can use them in all b4x platforms.
it is very simple to use and does the job, all of you are welcome to improve it and add new units.

now its support the following units:

Length:
millimeter
centimeter
decimeter
meter
kilometer
foot
inch
mile
yard

Volume:
cubic foot
cubic inch
cubic mile
cubic yard
cup
Imperial gallon
US gallon
milliliter
liter
Imperial fluid ounce
US fluid ounce
Imperial pint
US pint (liquid)
US pint (dry)
Imperial quart
US quart (liquid)
US quart (dry)
tablespoon
teaspoon

Weight:
milligram
gram
kilogram
carat
grain
ounce
pennyweight
pound
stone
slug
metric ton
long ton
short ton

Area:
acre
are
hectare
square foot
square meter
square kilometer
square inch
square yard
square mile
aankadam
perch
cent
chatak
kottah
guntha
ground
marla
rood
bigha I
bigha II
kanal
biswa I
biswa II

Pressure:
pascal
torr
bar
millibar
psi

Time:
day
hour
minute
year

Temperature:
celsius
fahrenheit
kelvin

to calculate just change the value in Textfield1 and press ENTER


screen1.jpg
 

Attachments

  • unitconverter.zip
    4.8 KB · Views: 425
Last edited:
Top