Fixed.make

Direct construction of a Fixed struct

struct Fixed(int scaling, V = long, Hook = KeepScalingHook)
static pure nothrow
make
(
const V v
)
if (
isIntegral!V
)

Examples

auto p1 = Fixed!3.make(1);
assert(p1.value == 1);

auto p2 = Fixed!3(1);
assert(p2.value == 1000);

Meta