Units and how to create them - P-Contorta/UnitCalc GitHub Wiki

Supported Units:

Below is a list of the currently supported unit types and the strings that can be used when calling create() to access them.

Basic Units

  • Current

    • ampere -> "A","Amp","amp","Amps","amps","Ampere","Amperes"
  • Distance

    • meter -> "M","m", "Meter", "Meters", "meter", "meters"
    • inch -> "In", "in", "Inch", "inch", "Inches", "inches"
    • foot -> "Ft", "ft", "Foot", "foot", "Feet", "feet"
    • mile -> "Mi", "mi", "Mile", "mile", "Miles", "miles"
  • Luminosity

    • candela -> "cd", "Candela", "candela", "Candelas","candelas"
  • Mass

    • kilogram -> "Kg", "kg", "Kilogram", "kilogram", "Kilograms", "kilograms"
    • pound -> "Lb", "lb", "Pound", "pound", "Pounds", "pounds"
    • ton -> "Ton", "ton", "Tons", "tons"
  • Substance

    • mol -> "Mol", "mol", "Mols", "mols"
  • Temperature

    • kelvin -> "K", "k", "Kelvin", "kelvin"
    • celcius -> "⁰C", "C", "c", "Celcius", "celcius"
    • fahrenheit -> "⁰F", "F", "f", "Fahrenheit", "fahrenheit"
  • Time

    • second -> "Sec", "sec", "Second", "second", "Seconds", "Seconds"
    • minute -> "Min", "min", "Minute", "minute", "Minutes" , "Minutes"
    • hour -> "Hr", "hr", "Hour", "hour", "Hours", "hours"

Derived Units

  • Charge
    • coulomb -> "Coul", "coul", "Coulomb", "coulomb", "Coulombs", "coulombs"

Electric Potential

  • volt -> "V", "v", "Volt", "volt", "Volts", "volts"

  • Electric Resistance

    • ohm -> "Ω", "Ohm", "ohm"
  • Energy

    • joule -> "J", "Joule", "joule", "Joules", "joules"
  • Force

    • newton -> "N", "Newton", "newton", "Newtons", "newtons"
  • Power

    • watt -> "W", "Watt", "watt", "Watts", "watts"
  • Pressure

    • pascal -> "Pa", "Pascal", "pascal", "Pascals", "pascals"