The following used to work but is now broken:
julia> function divideby3(x)
a = setrounding(Float64, RoundDown) do
x/3.0
end
b = setrounding(Float64, RoundUp) do
x/3.0
end
a,b
end
divideby3 (generic function with 1 method)
julia> x = 0.1
0.1
julia> divideby3(x)
(0.03333333333333333, 0.03333333333333333)