justunits¶
Module Attributes
|
The immutable, minimum unit definition consisting of the unit’s symbol, its name and the quantity this units stands for. |
|
This is the (non existing prefix) placeholder for 1. |
|
The style separating attributes/values from units. |
|
By default only 5 of 7 supported attribute unit separator are taken into account as the absolute certain separation of an single underline or whitespace separated unit is ambiguous, without limiting the results to the content of the unit library. |
|
The default style how powers are represented. |
|
The default style how unit fractions are represented. |
|
The default style by which character units are separated. |
|
The default unit style composed of power-, dividing- and separation-style. |
Functions
|
Creates a basic unit of your liking. |
|
|
|
Joins attribute and unit using one of six separators. |
|
|
|
Reformats a attribute/value-unit pair to a targeted format. |
|
|
Resets the unit library to the default definition. |
|
|
Sets the default separator in between attribute/value and unit. |
|
Sets the default unit style. |
|
|
|
Explicitly splits a numeric text followed by an unit. |
|
Splits an attribute/value with a trailing unit. |
|
Splits an attribute/value with a trailing unit text. |
|
Creates a string represenation of units. |
Classes
|
A unit represents just a single unit like meter ‘m’ and second ‘s’. |
|
|
|
An enumeration. |
|
|
|
The immutable, minimum unit definition consisting of the unit’s symbol, its name and the quantity this units stands for. |
|
|
|
Create new instance of Prefix(symbol, name, decimal) |
|
|
|
An enumeration. |
|
An enumeration. |
|
An enumeration. |
|
An enumeration. |
|
The unknown unit appears for cases in which text could not be resolved to units known by the current runtime library. |