pub fn toFloat(self: Self, comptime FloatT: type, negative: bool) FloatT self: SelfFloatT: typenegative: bool37
38
39
40
41
42
43 pub fn toFloat(self: Self, comptime FloatT: type, negative: bool) FloatT {
var word = self.f;
word |= @as(MantissaT, @intCast(self.e)) << std.math.floatMantissaBits(FloatT);
var f = floatFromUnsigned(FloatT, MantissaT, word);
if (negative) f = -f;
return f;
}