MCPcopy Create free account
hub / github.com/DOSNetwork/core / NewIntString

Function NewIntString

group/mod/int.go:72–74  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
72func 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.

Callers 1

TestInitsFunction · 0.85

Calls 1

InitStringMethod · 0.80

Tested by 1

TestInitsFunction · 0.68