Ray
Ray
Hey @totemcaf Great idea! Let's implement it
Hi @nomad-software, What result you expect to return by doing division here? ``` net := gross.Divide(1.2) // error ```
The problem with *floats* and *division* is that in some cases you will start loosing pennies because of rounding and removing decimals. - If you're ok with that, you can...
There is two lossless functions **Allocate**, **Split**, using them you're sure that you will not loose any penny. In order to split amount without losing use Split() operation. ```Go pound...
@nomad-software yes you're totally right. Using `float` it doesn't make it lossless too. Idea behind integer on divide and multiply functions was that the whole project is based on `int64`...
I really like solution B, could you please create PR for this?
> Hold up, you are not restricting type anywhere. Users may pass say float64, and loose the main benefit of this library — decimal integer arithmetics. > > If adding...
thanks, @jacanales, I'm going to take a look at it
@frolovdev sure, you more welcome to create a PR
@FlameMida it just got merged and released