The OpenD Programming Language

floatToNormInt

Convert a float to a normalized integer.

@safe pure nothrow @nogc
To
floatToNormInt
(
To
From
)
(
From f
)

Examples

static assert(floatToNormInt!ubyte(0.5) == 0x80);

Meta