Skip to content

Commit

Permalink
remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
tinybike committed Aug 13, 2014
1 parent ce5e663 commit e2643e8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/decimal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ decimal(x::Decimal) = x
decimal(x::Array) = map(decimal, x)

# Get Decimal constructor parameters from string
# parameters(x::String) = (abs((length(x) < 10) ? int(x) : BigInt(x)), 0)
parameters(x::String) = (abs(BigInt(x)), 0)

# Get Decimal constructor parameters from array
function parameters(x::Array)
# c = (length(x[2]) < 10) ? int(join(x)) : BigInt(join(x))
c = BigInt(join(x))
(abs(c), -length(x[2]))
end
Expand Down
1 change: 0 additions & 1 deletion src/norm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ function Base.norm(x::Decimal; rounded::Bool=false)
p += 1
end
end
# c = (isa(x.c, Union(Int64, BigInt))) ? BigInt(x.c / 10^p) : int(x.c / 10^p)
c = BigInt(x.c / 10^p)
q = (c == 0 && x.s == 0) ? 0 : x.q + p
if rounded
Expand Down

0 comments on commit e2643e8

Please sign in to comment.