FixedMath.Net
FixedMath.Net copied to clipboard
Conversions from float and double are unspecified in case of overflow
Conversion from float and double emit conv.i8 instructions which are unspecified in case of overflow; this means the type has unspecified behavior in this case.
The best approach would be to throw OverflowException in these cases, by emitting conv.ovf.i8 instead. The checked keyword in C# allows this.