INNER CODE UNIT · Go
func
ericlagergren/decimal · big.go:189
func (e ErrNaN) Error() string {
return e.Msg
}
var _ error = ErrNaN{}
// Canonical sets z to the canonical form of z.
//
// Since Big values are always canonical, it's identical to Copy.
func (z *Big) Canonical(x *Big) *Big {
return z.Copy(x)
}
// CheckNaNs checks if either x or y is NaN.
//
// If so, it follows the rules of NaN handling set forth in the
// GDA specification. The argument y may be nil. It reports
// whether either condition is a NaN.