Re:Beware of Fast-Math
by nulld3v on Saturday May 31, 2025 @02:19PM
(#44146023)
:facepalm: my bad, I completely missed the more rational intepretation of OP's comment...
I interpreted "directly representable" as "uniquely representable", all < 15 digit decimals are uniquely represented in fp64 so it is always safe to roundtrip between those decimals <-> f64, though indeed this guarantee is lost once you perform any math.
I interpreted "directly representable" as "uniquely representable", all < 15 digit decimals are uniquely represented in fp64 so it is always safe to roundtrip between those decimals <-> f64, though indeed this guarantee is lost once you perform any math.