-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
When multiplying 0 with some number, the resulting Text('f') shows too many zeroes. I expect the result to return "0"
x := new(apd.Decimal)
_, _ = x.SetFloat64(0)
multiplier := new(apd.Decimal)
_, _ = multiplier.SetFloat64(100)
result := new(apd.Decimal)
_, _ = apd.BaseContext.Mul(result, x, multiplier)
fmt.Println(result.Text('f')) // 000
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels