From a90f730de4aa765c0fc74c1e22585f2bc32801dd Mon Sep 17 00:00:00 2001 From: Lyndon White Date: Sat, 11 Sep 2021 21:17:42 +0100 Subject: [PATCH] use exp10 rather than 10.0^ --- src/field.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)