The OpenD Programming Language

std.experimental.normint

This module implements support for normalized integers.

Members

Enums

isNormalizedIntegralType
eponymoustemplate isNormalizedIntegralType(I)

Check if I is a valid NormalizedInt type. Valid integers are (u)byte, (u)short, (u)int. (u)long is not supported.

Functions

convertNormInt
To convertNormInt(From i)

Convert values between normalized integer types.

floatToNormInt
To floatToNormInt(From f)

Convert a float to a normalized integer.

normIntToFloat
To normIntToFloat(From i)

Convert a normalized integer to a float.

Structs

NormalizedInt
struct NormalizedInt(I)

Normalized integers express a fractional range of values within an integer data type.

Meta

Authors

Manu Evans