We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ad20e commit d927bdbCopy full SHA for d927bdb
src/FixedPointDecimals.jl
@@ -32,7 +32,7 @@ using Compat
32
import Base: reinterpret, zero, one, abs, sign, ==, <, <=, +, -, /, *, div, rem, divrem,
33
fld, mod, fldmod, fld1, mod1, fldmod1, isinteger, typemin, typemax,
34
realmin, realmax, print, show, string, convert, parse, promote_rule, min, max,
35
- trunc, round, floor, ceil, eps, float, widemul, exp10
+ trunc, round, floor, ceil, eps, float, widemul
36
37
import Base.Checked: checked_mul
38
@@ -416,22 +416,6 @@ function max_exp10{T <: Integer}(::Type{T})
416
exponent - 1
417
end
418
419
-"""
420
- exp10(::Type{FD{T, f}})
421
-
422
-Compute `10^f` as an Integer without overflow. The resulting type will be an integer of type
423
-T or wider.
424
425
-@generated function exp10{T <: Integer, f}(::Type{FD{T, f}})
426
- P = T
427
- while P != BigInt && f > max_exp10(P)
428
- P = widen(P)
429
- end
430
- quote
431
- $(P(10)^f)
432
433
-end
434
435
"""
436
coefficient(::Type{FD{T, f}}) -> T
437
0 commit comments