icu4x
    Preparing search index...

    Class UnitsConverter

    An ICU4X Units Converter object, capable of converting between two [MeasureUnit]s.

    You can create an instance of this object using [UnitsConverterFactory] by calling the converter method.

    See the Rust documentation for UnitsConverter for more information.

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get ffiValue(): number

      Returns number

    Methods

    • Converts the input value from the input unit to the output unit (that have been used to create this converter). NOTE: The conversion using floating-point operations is not as accurate as the conversion using ratios.

      See the Rust documentation for convert for more information.

      Parameters

      • value: number

      Returns number