prefix

Creates a new prefix function that mutlpy a Quantity by _factor factor.

template prefix(alias factor)
prefix
(
Q
)
()

Members

Aliases

N
alias N = typeof(factor)
Undocumented in source.

Functions

prefix
auto prefix(Q base)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import quantities.si : meter;
alias milli = prefix!1e-3;
assert(milli(meter).value(meter).approxEqual(1e-3));

Meta