ocean.text.util.MetricPrefix

Converts values into a metric representation with a scaled mantissa and a decimal exponent unit prefix character.

Members

Functions

splitBinaryPrefix
void splitBinaryPrefix(ulong n, void delegate(char prefix, uint order, ulong order_val) output_dg)

Splits the given number by binary prefixes (K, M, T, etc), passing the prefix character, the prefix order and the count per prefix to the output delegate.

Structs

MetricPrefix
struct MetricPrefix

Metric prefix struct.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).