MetricPrefix.bin

Converts n into a metric-like prefixed representation, using powers of 1024.

struct MetricPrefix
typeof(&this)
bin
(
T : float
)
(
T n
)

Parameters

n T

number to convert

Return Value

Type: typeof(&this)

this instance

Examples

For n == 12345678 this.scaled about 11.78 and this.prefix is 'M'.

Meta