decimal
decimal copied to clipboard
RoundFloor & RoundCeil example on pkg.go.dev seems Wrong
decimal.NewFromFloat(-1.454).RoundFloor(1).String() -> output would be "-1.5"
decimal.NewFromFloat(-1.454).RoundCeil(1).String() -> output would be "-1.4"
Hi! This issue has been already fixed on the main branch. I have to create a new release so documentation will be updated on pkg;.go.dev. I will do it soon, as I'm finishing a Pow implementation that I want to include in the 1.4.0 release.