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

Function NewDecFromStr

types/decimal.go:126–173  ·  view source on GitHub ↗

create a decimal from an input decimal string. valid must come in the form: (-) whole integers (.) decimal integers examples of acceptable input include: -123.456 456.7890 345 -456789 NOTE - An error will return if more decimal places are provided in the string than the constant Precision. CONTRAC

(str string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

UnmarshalJSONMethod · 0.85

Calls 2

ErrUnknownRequestFunction · 0.85
NegMethod · 0.45

Tested by

no test coverage detected