IUnit Type

Represents an arbitrary unit (SI or any other unit).

Instance members

Instance member Description

this.FromSIUnit

Full Usage: this.FromSIUnit

Parameters:
    x : float - Value in SI units.

Returns: float The corresponding value in this unit.
Modifiers: abstract

Converts x (in SI units) to the corresponding value in this unit.

x : float

Value in SI units.

Returns: float

The corresponding value in this unit.

this.Name

Full Usage: this.Name

Returns: string
Modifiers: abstract

Full name of the unit.

Returns: string

this.Prefixes

Full Usage: this.Prefixes

Returns: ISIPrefixList
Modifiers: abstract

Returns a list of possible prefixes for this unit (like ยต, m, k, M, G..).

Returns: ISIPrefixList

this.SIUnit

Full Usage: this.SIUnit

Returns: SIUnit
Modifiers: abstract

Returns the corresponding SI unit.

Returns: SIUnit

this.ShortCut

Full Usage: this.ShortCut

Returns: string
Modifiers: abstract

Usual shortcut of the unit.

Returns: string

this.ToSIUnit

Full Usage: this.ToSIUnit

Parameters:
    x : float - Value to convert.

Returns: float The corresponding value of x in SI units.
Modifiers: abstract

Converts x to the corresponding SI unit.

x : float

Value to convert.

Returns: float

The corresponding value of x in SI units.