The OpenD Programming Language

fp_log2

template fp_log2(T)
T
fp_log2
(
uint size
)
(
Fp!size x
)
if (
is(T == float) ||
is(T == double)
||
is(T == real)
)

Members

Functions

fp_log2
T fp_log2(Fp!size x)

Examples

import mir.math.common: log2, approxEqual;
import mir.bignum.fp: fp_log2;

double x = 123456789.0e+123;
assert(approxEqual(x.Fp!128.fp_log2!double, x.log2));

Meta