3 ms·
For what it's worth, Julia supports setting rounding modes in a way that works across both native floating-point types (Float32 and Float64) and BigFloats: htt
by StefanKarpinski 13y ago
For what it's worth, Julia supports setting rounding modes in a way that works across both native floating-point types (Float32 and Float64) and BigFloats:
http://docs.julialang.org/en/latest/stdlib/base/#Base.get_rounding http://docs.julialang.org/en/latest/stdlib/base/#Base.get_ro...
This stuff is incredibly important for numerical work and it's really a shame that mainstream languages have effectively rejected this key piece of functionality – that the hardware supports.
There's an open GitHub umbrella issue tracking support for all of the pieces of functionality that Kahan advocates:
https://github.com/JuliaLang/julia/issues/2976 https://github.com/JuliaLang/julia/issues/2976
I'm not sure about signaling NaNs though. There have been rumblings that future hardware might not support them.