Function floatMax [src]
Alias for std.math.float.floatMax
Returns the largest normal number representable in floating point type T.
Prototype
pub inline fn floatMax(comptime T: type) T
Parameters
T: type
Source
pub inline fn floatMax(comptime T: type) T {
const all1s_mantissa = (1 << floatMantissaBits(T)) - 1;
return reconstructFloat(T, floatExponentMax(T), all1s_mantissa);
}