Open
Description
With the following code, I would expect a quotient of 1
and a remainder of 0.2
. What I actually get is 1
and 2
.
one := decimal.New(1, 0)
original := decimal.New(12, 1)
quo := &decimal.Big{}
rem := &decimal.Big{}
quo.QuoRem(original, one, rem)
fmt.Println("QuoRem:", quo, rem)
Calling QuoInt
and Rem
separately yields the expected result.
Metadata
Metadata
Assignees
Labels
No labels