Builder

class Builder

Builder for creating a DenominatorScientificValueFormatter

Properties

Link copied to clipboard

The CommonScientificValueFormatter to use for units not specified by the denominator

Link copied to clipboard

The NumberFormatter to use for all denominator units except for the last formatted denominator

Link copied to clipboard

The IncludeZeroValues settings to use when encountering a zero value denominator.

Link copied to clipboard

The NumberFormatter to use for the last formatted denominator.

Link copied to clipboard

The precision at which denominators are rounded down. If within the precision unit the value will be rounded up, otherwise down.

Link copied to clipboard
var scale: UInt

The scale used for rounding the denominator units.

Link copied to clipboard

The separator between denominators

Functions

Link copied to clipboard

Sets the denominator SystemScientificUnit of a given SystemScientificUnit When formatting this unit, it will be split up into the denominator units (including the unit itself).

Link copied to clipboard

Formats any ScientificValue with quantity Quantity as a unit of unit Is overruled by ScientificUnit.formatAs

Formats any ScientificValue of this unit into unit Overrules PhysicalQuantity.formatAs

Link copied to clipboard

Formats a value in a ScientificUnit using CustomFormatHandler

Link copied to clipboard
infix fun ScientificUnit<*>.usesCustomSymbol(symbol: String)

Sets a custom symbol for formatting a value of a ScientificUnit