We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e1f3b4 commit deecdffCopy full SHA for deecdff
1 file changed
pkg/lang/ratio.go
@@ -37,7 +37,9 @@ func (r *Ratio) Denominator() *big.Int {
37
}
38
39
func (r *Ratio) BigIntegerValue() *big.Int {
40
- return new(big.Int).Div(r.val.Num(), r.val.Denom())
+ var tmp big.Int
41
+ res, _ := new(big.Int).QuoRem(r.val.Num(), r.val.Denom(), &tmp)
42
+ return res
43
44
45
func (r *Ratio) String() string {
0 commit comments