2 ms·
Julia also supports this: with_rounding(Float64, RoundUp) do println(bits(1.0 / 3.0)) with_rounding(Float64, RoundToZero) do pr
by andrioni 12y ago
Julia also supports this:
with_rounding(Float64, RoundUp) do
println(bits(1.0 / 3.0))
with_rounding(Float64, RoundToZero) do
println(bits(1.0 / 3.0))
end
end
0011111111010101010101010101010101010101010101010101010101010110
0011111111010101010101010101010101010101010101010101010101010101