The OpenD Programming Language

normIntToFloat

Convert a normalized integer to a float.

@safe pure nothrow @nogc
To
normIntToFloat
(
To
From
)
(
From i
)

Examples

static assert(normIntToFloat!(double, ubyte)(0xFF) == 1.0);

Meta