math/big: round x + (-x) to -0 for mode ToNegativeInf #25798
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
The source of float.go contains the following comment about handling the sign bit for Add/Sub
And the documentation for
func (z *Float) Add(x, y *Float) *Float
notes that rounding modeToNegativeInf
does not correctly follow this spec.// BUG(gri) When rounding ToNegativeInf, the sign of Float values rounded to 0 is incorrect.
@griesemer
The text was updated successfully, but these errors were encountered: