Mateusz Woś
Mateusz Woś
@kempeng API provides a method like `Cmp`, `Equal`, `GreaterThan`, `LessThan`, `LessThanOrEqual`, `GreaterThanOrEqual`. I think max and min method are not necessarily needed.
Yes, you are right but they are not bound to the Decimal struct itself. @kempeng asked about `Min` and `Max` methods for decimal struct.
Hi! Do you mean the `decimal` library is making too many calls to `new(big.Int)` overall or there are too many calls to `new(big.Int)` in your code due to usage of...
Thanks for letting us know. I will look at this in the future, as there are many more important issues than that currently. Also, this library is mainly aiming for...
Hi @coip. Thanks for suggesting such functionality. Tbh, I'm not convinced of the necessity of handling money formatted string by `FromString` method. Anyways, I'm aware that decimal libs are mostly...
NewFromFormattedString would be a better idea, IMO. We will add this task to backlog ;)
I badly wanted to add proper Pow implementation before 1.3.0 release - I know it's taking ages :// Maybe I will merge few other open PRs and do a smaller...
Thanks @marcocali for pointing this out. We will take a closer look on this :)
I apologize for such late response @marcocali, @faide. Yes, you are exactly right. Both NewFromFloat and NewFromString do not provide always 1:1 results. As semantically both functions return the same...
Hi @vsokolovsky555. Thanks for mentioning this issue. This is a known bug (maybe someone could call it feature) with `Div` meethod that can produce not exact results. This is strictly...