3 ms·
You could represent your numbers as fractions of integers and do all operations on them as fractions of integers: https://gmplib.org/manual/Rational-Number-Func
by edwintorok 12y ago
You could represent your numbers as fractions of integers and do all operations on them as fractions of integers:
https://gmplib.org/manual/Rational-Number-Functions.html#Rational-Number-Functions https://gmplib.org/manual/Rational-Number-Functions.html#Rat...
And only converting them to floating point for display purposes: http://www.mpfr.org/mpfr-current/mpfr.html#index-mpfr_005fset_005fq-50 http://www.mpfr.org/mpfr-current/mpfr.html#index-mpfr_005fse...