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

Function NewDecWithPrec

types/decimal.go:79–83  ·  view source on GitHub ↗

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

(i, prec int64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewDecFunction · 0.85

Calls 2

precisionMultiplierFunction · 0.85
MulMethod · 0.45

Tested by

no test coverage detected