Gary Willoughby
Gary Willoughby
This repo should be taken down or at least made extremely clear this is only your opinion and not officially endorsed. In fact, it's officially discouraged. https://github.com/golang-standards/project-layout/issues/117
The above can be achieved like this: ```go value := money.New(23485, "GBP") taxPercent := 20.0 // We have to use large allocations to preserve precision. netAlloc := int((100 / ((taxPercent...
I would expect it to round (half up), so `499`. ``` gross := money.New(599, "GBP") net := gross.Divide(1.2) // 499 tax, _ := gross.Subtract(net) // 100 gross = net.Add(tax) //...
> The problem with floats and division is that in some cases you will start loosing pennies because of rounding and removing decimals. Yeah, that's always a problem but it...
> There is two lossless functions Allocate, Split, using them you're sure that you will not loose any penny. Yes, that's what I'm using at the minute. My point was...
I know the whole project is based on `int64` but that does not invalidate my question. If you have a `Divide` function that returns a loss in precision with an...
@akshayjshah Hi, are there any more updates for this yet? Thanks.
@akshayjshah @joshcarp Hi, are there any more updates for this yet? Thanks.
Thanks @joshcarp for the update. Do you have an ETA for this please? (I'm trying to plan work around it) I think it was pencilled in for the connect v1...
Is there any chance of an official docker image being pushed to Docker Hub please?