IsZero returns true if d == 0 or -0.
()
| 617 | |
| 618 | // IsZero returns true if d == 0 or -0. |
| 619 | func (d *Decimal) IsZero() bool { |
| 620 | return d.Sign() == 0 |
| 621 | } |
| 622 | |
| 623 | // Modf sets integ to the integral part of d and frac to the fractional part |
| 624 | // such that d = integ+frac. If d is negative, both integ or frac will be either |