@@ -27,14 +27,10 @@ module FixedPointDecimals
2727
2828export FixedDecimal, RoundThrows
2929
30- using Compat: lastindex, something
31-
32- import Compat: floatmin, floatmax
33-
3430import Base: reinterpret, zero, one, abs, sign, == , < , <= , + , - , / , * , div, rem, divrem,
3531 fld, mod, fldmod, fld1, mod1, fldmod1, isinteger, typemin, typemax,
3632 print, show, string, convert, parse, promote_rule, min, max,
37- trunc, round, floor, ceil, eps, float, widemul, decompose
33+ floatmin, floatmax, trunc, round, floor, ceil, eps, float, widemul, decompose
3834
3935const BitInteger = Union{Int8, UInt8, Int16, UInt16, Int32, UInt32, Int64,
4036 UInt64, Int128, UInt128}
@@ -223,14 +219,7 @@ as a floating point number.
223219This is equivalent to counting the number of bits needed to represent the
224220integer, excluding any trailing zeros.
225221"""
226- required_precision (:: Integer )
227-
228- # https://github.com/JuliaLang/julia/pull/27908
229- if VERSION < v " 0.7.0-beta.183"
230- required_precision (n:: Integer ) = ndigits (n, 2 ) - trailing_zeros (n)
231- else
232- required_precision (n:: Integer ) = ndigits (n, base= 2 ) - trailing_zeros (n)
233- end
222+ required_precision (n:: Integer ) = ndigits (n, base= 2 ) - trailing_zeros (n)
234223
235224"""
236225 _apply_exact_float(f, T, x::Real, i::Integer)
0 commit comments