Class Units
- java.lang.Object
-
- org.mariuszgromada.math.mxparser.mathcollection.Units
-
public final class Units extends Object
Units - class representing the most important units (length, area, volume, mass).- Version:
- 5.2.0
- Author:
- Mariusz Gromada
MathParser.org - mXparser project page
mXparser on GitHub
INFIMA place to purchase a commercial MathParser.org-mXparser software license
info@mathparser.org
ScalarMath.org - a powerful math engine and math scripting language
Scalar Lite
Scalar Pro
MathSpace.pl
Buy me a cup of coffee via donation
or support me purchasing the license via ORDER Page , or INFIMA online store
-
-
Field Summary
Fields Modifier and Type Field Description static double
ACRE
Acrestatic double
AMPERE
Amperestatic double
ARE
Arestatic double
ATTO
Attostatic double
BIT
Bitstatic double
BYTE
Bytestatic double
CELCIUS
Celciusstatic double
CENTI
Centistatic double
CENTIMETRE
Centimeterstatic double
CENTIMETRE2
Square centimetrestatic double
CENTIMETRE3
Qubic centimetrestatic double
COULOMB
Coulombstatic double
DAY
DAYstatic double
DECA
Decastatic double
DECAGRAM
Decagramstatic double
DECI
Decistatic double
DEGREE_ARC
Degree (angle)static double
ELECTRONO_VOLT
Electrono-Voltstatic double
EXA
Exastatic double
EXABIT
Exabitstatic double
EXABYTE
Exabytestatic double
FARENHEIGHT
Farenheightstatic double
FEET
Feetstatic double
FEMTO
Femtostatic double
GALLON
Gallonstatic double
GIGA
Gigastatic double
GIGA_ELECTRONO_VOLT
Giga Electrono-Voltstatic double
GIGABIT
Gigabitstatic double
GIGABYTE
Gigabytestatic double
GRAM
Gramstatic double
HECTARE
Hectarestatic double
HECTO
Hectostatic double
HOUR
HOURstatic double
INCH
Inchstatic double
JOULE
Julestatic double
JULIAN_YEAR
JULIAN YEARstatic double
KELVIN
Kelvinstatic double
KILO
Kilostatic double
KILO_ELECTRONO_VOLT
Kilo Electrono-Voltstatic double
KILOBIT
Kilobitstatic double
KILOBYTE
Kilobytestatic double
KILOGRAM
Kilogramstatic double
KILOMETRE
Kilometerstatic double
KILOMETRE_PER_HOUR
Kilometre per hourstatic double
KILOMETRE_PER_HOUR2
Kilometre per squared hourstatic double
KILOMETRE2
Square kilometrestatic double
KILOMETRE3
Qubic kilometrestatic double
KNOT
Knotstatic double
LITRE
Litrestatic double
MEGA
Megastatic double
MEGA_ELECTRONO_VOLT
Mega Electrono-Voltstatic double
MEGABIT
Megabitstatic double
MEGABYTE
Megabytestatic double
METRE
Meterstatic double
METRE_PER_SECOND
Metre per secondstatic double
METRE_PER_SECOND2
Metre per squared secondstatic double
METRE2
Square metrestatic double
METRE3
Qubic metrestatic double
MICRO
Microstatic double
MILE
Milestatic double
MILE_PER_HOUR
Mile per hourstatic double
MILE_PER_HOUR2
Mile per squared hourstatic double
MILLI
Millistatic double
MILLIGRAM
Milligramstatic double
MILLILITRE
Millilitrestatic double
MILLIMETRE
Millimetrestatic double
MILLIMETRE2
Square millimetrestatic double
MILLIMETRE3
Qubic millimetrestatic double
MILLISECOND
Millisecondstatic double
MINUTE
MINUTEstatic double
MINUTE_ARC
Minute (angle)static double
MOLE
static double
NANO
Nanostatic double
NAUTICAL_MILE
Nautical milestatic double
OUNCE
Ouncestatic double
PERC
Percentagestatic double
PETA
Petastatic double
PETABIT
Petabitstatic double
PETABYTE
Petabytestatic double
PICO
Picostatic double
PINT
Pintstatic double
POUND
Poundstatic double
PROMIL
Promil, Per millestatic double
RADIAN_ARC
Radian (angle)static double
SECOND
Secondstatic double
SECOND_ARC
Second (angle)static double
TERA
Terastatic double
TERA_ELECTRONO_VOLT
Tera Electrono-Voltstatic double
TERABIT
Terabitstatic double
TERABYTE
Terabytestatic double
TONNE
Tonnestatic double
WEEK
WEEKstatic double
YARD
Yardstatic double
YOCTO
Yoctostatic double
YOTTA
Yottastatic double
YOTTABIT
Yottabitstatic double
YOTTABYTE
Yottabytestatic double
ZEPTO
Zeptostatic double
ZETTA
Zettastatic double
ZETTABIT
Zettabitstatic double
ZETTABYTE
Zettabyte
-
Constructor Summary
Constructors Constructor Description Units()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
getUnitValue(int unitId)
Returns unit value, where unit is represented by the token id in the Unit class
-
-
-
Field Detail
-
PERC
public static final double PERC
Percentage- See Also:
- Constant Field Values
-
PROMIL
public static final double PROMIL
Promil, Per mille- See Also:
- Constant Field Values
-
YOTTA
public static final double YOTTA
Yotta- See Also:
- Constant Field Values
-
ZETTA
public static final double ZETTA
Zetta- See Also:
- Constant Field Values
-
EXA
public static final double EXA
Exa- See Also:
- Constant Field Values
-
PETA
public static final double PETA
Peta- See Also:
- Constant Field Values
-
TERA
public static final double TERA
Tera- See Also:
- Constant Field Values
-
GIGA
public static final double GIGA
Giga- See Also:
- Constant Field Values
-
MEGA
public static final double MEGA
Mega- See Also:
- Constant Field Values
-
KILO
public static final double KILO
Kilo- See Also:
- Constant Field Values
-
HECTO
public static final double HECTO
Hecto- See Also:
- Constant Field Values
-
DECA
public static final double DECA
Deca- See Also:
- Constant Field Values
-
DECI
public static final double DECI
Deci- See Also:
- Constant Field Values
-
CENTI
public static final double CENTI
Centi- See Also:
- Constant Field Values
-
MILLI
public static final double MILLI
Milli- See Also:
- Constant Field Values
-
MICRO
public static final double MICRO
Micro- See Also:
- Constant Field Values
-
NANO
public static final double NANO
Nano- See Also:
- Constant Field Values
-
PICO
public static final double PICO
Pico- See Also:
- Constant Field Values
-
FEMTO
public static final double FEMTO
Femto- See Also:
- Constant Field Values
-
ATTO
public static final double ATTO
Atto- See Also:
- Constant Field Values
-
ZEPTO
public static final double ZEPTO
Zepto- See Also:
- Constant Field Values
-
YOCTO
public static final double YOCTO
Yocto- See Also:
- Constant Field Values
-
METRE
public static final double METRE
Meter- See Also:
- Constant Field Values
-
KILOMETRE
public static final double KILOMETRE
Kilometer- See Also:
- Constant Field Values
-
CENTIMETRE
public static final double CENTIMETRE
Centimeter- See Also:
- Constant Field Values
-
MILLIMETRE
public static final double MILLIMETRE
Millimetre- See Also:
- Constant Field Values
-
INCH
public static final double INCH
Inch- See Also:
- Constant Field Values
-
YARD
public static final double YARD
Yard- See Also:
- Constant Field Values
-
FEET
public static final double FEET
Feet- See Also:
- Constant Field Values
-
MILE
public static final double MILE
Mile- See Also:
- Constant Field Values
-
NAUTICAL_MILE
public static final double NAUTICAL_MILE
Nautical mile- See Also:
- Constant Field Values
-
METRE2
public static final double METRE2
Square metre- See Also:
- Constant Field Values
-
CENTIMETRE2
public static final double CENTIMETRE2
Square centimetre- See Also:
- Constant Field Values
-
MILLIMETRE2
public static final double MILLIMETRE2
Square millimetre- See Also:
- Constant Field Values
-
ARE
public static final double ARE
Are- See Also:
- Constant Field Values
-
HECTARE
public static final double HECTARE
Hectare- See Also:
- Constant Field Values
-
KILOMETRE2
public static final double KILOMETRE2
Square kilometre- See Also:
- Constant Field Values
-
ACRE
public static final double ACRE
Acre- See Also:
- Constant Field Values
-
MILLIMETRE3
public static final double MILLIMETRE3
Qubic millimetre- See Also:
- Constant Field Values
-
CENTIMETRE3
public static final double CENTIMETRE3
Qubic centimetre- See Also:
- Constant Field Values
-
METRE3
public static final double METRE3
Qubic metre- See Also:
- Constant Field Values
-
KILOMETRE3
public static final double KILOMETRE3
Qubic kilometre- See Also:
- Constant Field Values
-
MILLILITRE
public static final double MILLILITRE
Millilitre- See Also:
- Constant Field Values
-
LITRE
public static final double LITRE
Litre- See Also:
- Constant Field Values
-
GALLON
public static final double GALLON
Gallon- See Also:
- Constant Field Values
-
PINT
public static final double PINT
Pint- See Also:
- Constant Field Values
-
SECOND
public static final double SECOND
Second- See Also:
- Constant Field Values
-
MILLISECOND
public static final double MILLISECOND
Millisecond- See Also:
- Constant Field Values
-
MINUTE
public static final double MINUTE
MINUTE- See Also:
- Constant Field Values
-
HOUR
public static final double HOUR
HOUR- See Also:
- Constant Field Values
-
DAY
public static final double DAY
DAY- See Also:
- Constant Field Values
-
WEEK
public static final double WEEK
WEEK- See Also:
- Constant Field Values
-
JULIAN_YEAR
public static final double JULIAN_YEAR
JULIAN YEAR- See Also:
- Constant Field Values
-
KILOGRAM
public static final double KILOGRAM
Kilogram- See Also:
- Constant Field Values
-
GRAM
public static final double GRAM
Gram- See Also:
- Constant Field Values
-
MILLIGRAM
public static final double MILLIGRAM
Milligram- See Also:
- Constant Field Values
-
DECAGRAM
public static final double DECAGRAM
Decagram- See Also:
- Constant Field Values
-
TONNE
public static final double TONNE
Tonne- See Also:
- Constant Field Values
-
OUNCE
public static final double OUNCE
Ounce- See Also:
- Constant Field Values
-
POUND
public static final double POUND
Pound- See Also:
- Constant Field Values
-
MOLE
public static final double MOLE
- See Also:
- Constant Field Values
-
COULOMB
public static final double COULOMB
Coulomb- See Also:
- Constant Field Values
-
AMPERE
public static final double AMPERE
Ampere- See Also:
- Constant Field Values
-
KELVIN
public static final double KELVIN
Kelvin- See Also:
- Constant Field Values
-
CELCIUS
public static final double CELCIUS
Celcius- See Also:
- Constant Field Values
-
FARENHEIGHT
public static final double FARENHEIGHT
Farenheight- See Also:
- Constant Field Values
-
BIT
public static final double BIT
Bit- See Also:
- Constant Field Values
-
KILOBIT
public static final double KILOBIT
Kilobit- See Also:
- Constant Field Values
-
MEGABIT
public static final double MEGABIT
Megabit- See Also:
- Constant Field Values
-
GIGABIT
public static final double GIGABIT
Gigabit- See Also:
- Constant Field Values
-
TERABIT
public static final double TERABIT
Terabit- See Also:
- Constant Field Values
-
PETABIT
public static final double PETABIT
Petabit- See Also:
- Constant Field Values
-
EXABIT
public static final double EXABIT
Exabit- See Also:
- Constant Field Values
-
ZETTABIT
public static final double ZETTABIT
Zettabit- See Also:
- Constant Field Values
-
YOTTABIT
public static final double YOTTABIT
Yottabit- See Also:
- Constant Field Values
-
BYTE
public static final double BYTE
Byte- See Also:
- Constant Field Values
-
KILOBYTE
public static final double KILOBYTE
Kilobyte- See Also:
- Constant Field Values
-
MEGABYTE
public static final double MEGABYTE
Megabyte- See Also:
- Constant Field Values
-
GIGABYTE
public static final double GIGABYTE
Gigabyte- See Also:
- Constant Field Values
-
TERABYTE
public static final double TERABYTE
Terabyte- See Also:
- Constant Field Values
-
PETABYTE
public static final double PETABYTE
Petabyte- See Also:
- Constant Field Values
-
EXABYTE
public static final double EXABYTE
Exabyte- See Also:
- Constant Field Values
-
ZETTABYTE
public static final double ZETTABYTE
Zettabyte- See Also:
- Constant Field Values
-
YOTTABYTE
public static final double YOTTABYTE
Yottabyte- See Also:
- Constant Field Values
-
JOULE
public static final double JOULE
Jule- See Also:
- Constant Field Values
-
ELECTRONO_VOLT
public static final double ELECTRONO_VOLT
Electrono-Volt- See Also:
- Constant Field Values
-
KILO_ELECTRONO_VOLT
public static final double KILO_ELECTRONO_VOLT
Kilo Electrono-Volt- See Also:
- Constant Field Values
-
MEGA_ELECTRONO_VOLT
public static final double MEGA_ELECTRONO_VOLT
Mega Electrono-Volt- See Also:
- Constant Field Values
-
GIGA_ELECTRONO_VOLT
public static final double GIGA_ELECTRONO_VOLT
Giga Electrono-Volt- See Also:
- Constant Field Values
-
TERA_ELECTRONO_VOLT
public static final double TERA_ELECTRONO_VOLT
Tera Electrono-Volt- See Also:
- Constant Field Values
-
METRE_PER_SECOND
public static final double METRE_PER_SECOND
Metre per second- See Also:
- Constant Field Values
-
KILOMETRE_PER_HOUR
public static final double KILOMETRE_PER_HOUR
Kilometre per hour- See Also:
- Constant Field Values
-
MILE_PER_HOUR
public static final double MILE_PER_HOUR
Mile per hour- See Also:
- Constant Field Values
-
KNOT
public static final double KNOT
Knot- See Also:
- Constant Field Values
-
METRE_PER_SECOND2
public static final double METRE_PER_SECOND2
Metre per squared second- See Also:
- Constant Field Values
-
KILOMETRE_PER_HOUR2
public static final double KILOMETRE_PER_HOUR2
Kilometre per squared hour- See Also:
- Constant Field Values
-
MILE_PER_HOUR2
public static final double MILE_PER_HOUR2
Mile per squared hour- See Also:
- Constant Field Values
-
RADIAN_ARC
public static final double RADIAN_ARC
Radian (angle)- See Also:
- Constant Field Values
-
DEGREE_ARC
public static final double DEGREE_ARC
Degree (angle)- See Also:
- Constant Field Values
-
MINUTE_ARC
public static final double MINUTE_ARC
Minute (angle)- See Also:
- Constant Field Values
-
SECOND_ARC
public static final double SECOND_ARC
Second (angle)- See Also:
- Constant Field Values
-
-
Method Detail
-
getUnitValue
public static double getUnitValue(int unitId)
Returns unit value, where unit is represented by the token id in the Unit class- Parameters:
unitId
-- Returns:
- Returns unit value if id is known, otherwise Double.NaN is returned.
- See Also:
Unit
-
-