You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Numerical value: (-1)^s * c * 10^qstruct Decimal <:AbstractFloat
s::Bool# sign can be 0 (+) or 1 (-)
c::BigInt# coefficient (significand), must be non-negative
q::Int# exponentend
It doesn't seem to me like s serves any purpose that couldn;t be rolled in c.
Since BigInts can be negative or possitive.
The text was updated successfully, but these errors were encountered:
I also thought that the sign could be moved into the coefficient. However, after re-implementing a few operations, I must say that it is quite convenient that the coefficient is always non-negative and that the sign is a separate field. What John said is also true.
The only advantage I see in removing the field is less memory consumption. But given that this package is not intended for memory-constrained applications (and after all, one bool is negligible compared to the huge BigInts that are commonly expected), I don't think it's relevant. Because of that, I'll take the liberty of closing this issue.
From here
#42 (comment)
It doesn't seem to me like
s
serves any purpose that couldn;t be rolled inc
.Since
BigInt
s can be negative or possitive.The text was updated successfully, but these errors were encountered: