Is it possible to perform computations using, say, five-digit arithmetic with a given rounding mode? For example, can I easily compute x/10^{-5}, x = 0.44446, in 5-digit arithmetic with rounding to the nearest number? I could easily do
julia> x = 0.44446;
julia> round(x/1e-5, digits = 5)
44446.0
but this would not be so reasonable for more involved computations. I also want to do things like compute the Cholesky factor of a matrix in four-digit arithmetic with chopped rounding, like the matrix
H = [1.000 0.5000 0.3333 0.2500
0.5000 0.3333 0.2500 0.2000
0.3333 0.2500 0.2000 0.1666
0.2500 0.2000 0.1666 0.1428]
Is this possible?
I tried using ArbNumerics
, although this seems to only allow for a high number of digits when I try to change the working precision.