NewIntString creates a new Int with a given string and a big.Int modulus. The value is set to a rational fraction n/d in a given base.
(n, d string, base int, m *big.Int)
| 70 | // NewIntString creates a new Int with a given string and a big.Int modulus. |
| 71 | // The value is set to a rational fraction n/d in a given base. |
| 72 | func NewIntString(n, d string, base int, m *big.Int) *Int { |
| 73 | return new(Int).InitString(n, d, base, m) |
| 74 | } |
| 75 | |
| 76 | // Init a Int with a given big.Int value and modulus pointer. |
| 77 | // Note that the value is copied; the modulus is not. |