diff --git a/src/field.jl b/src/field.jl index 1ec8a20..45d332b 100644 --- a/src/field.jl +++ b/src/field.jl @@ -235,9 +235,9 @@ end if frac_digits <= 15 && -22 <= exp <= 22 if exp >= 0 - f = F(f1)*10.0^exp + f = F(f1)*exp10(exp) else - f = F(f1)/10.0^(-exp) + f = F(f1)/exp10(-exp) end else f = convert_to_double(f1, exp)