Documentation
¶
Overview ¶
Package big implements multi-precision arithmetic (big numbers). The following numeric types are supported:
- Int signed integers
- Rat rational numbers
Methods are typically of the form:
func (z *Int) Op(x, y *Int) *Int (similar for *Rat)
and implement operations z = x Op y with the result as receiver; if it is one of the operands it may be overwritten (and its memory reused). To enable chaining of operations, the result is also returned. Methods returning a result other than *Int or *Rat take one of the operands as the receiver.