MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / NewDecFromIntWithPrec

Function NewDecFromIntWithPrec

types/decimal.go:107–111  ·  view source on GitHub ↗

create a new Dec from big integer with decimal place at prec CONTRACT: prec <= Precision

(i Int, prec int64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewDecFromIntFunction · 0.85

Calls 3

precisionMultiplierFunction · 0.85
MulMethod · 0.45
BigIntMethod · 0.45

Tested by

no test coverage detected