Use Math.ln10 instead of Math.log 10
commit4c27e34c59f8e500cf2f6061508007f65b65c69c
authorHarry Garrood <harry.garrood@lumi.com>
dateThu 31 Jan 2019, 16:36 (8 years ago)
parent26e44da
src/Data/Fixed.purs+1−1
@@ -110,7 +110,7 @@ reflectPrecisionDecimalPlaces _ =
110110 let
111111 p = reflectPrecision (PProxy :: PProxy precision)
112112 in
113− Int.round (Math.log (Int.toNumber p) / Math.log 10.0)
113+ Int.round (Math.log (Int.toNumber p) / Math.ln10)
114114
115115
116116-- | Reify an non-negative integer (a power of ten) as a `Precision`.