MCPcopy Create free account
hub / github.com/corestoreio/pkg / MakeDecimalBytes

Function MakeDecimalBytes

storage/null/decimal.go:109–146  ·  view source on GitHub ↗

MakeDecimalBytes parses b to create a new Decimal. b must contain ASCII numbers. If b contains null/NULL the returned object represents that value. This function can be used for big.Int.Bytes() or similar implementations. Parses only numbers as stored in MySQL/MariaDB decimal/double column format, e

(b []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

TestMakeDecimalBytesFunction · 0.85
MakeDecimalFloat64Function · 0.85
MustMakeDecimalBytesFunction · 0.85
ScanMethod · 0.85
UnmarshalJSONMethod · 0.85
UnmarshalTextMethod · 0.85

Calls 1

EqualMethod · 0.45

Tested by 1

TestMakeDecimalBytesFunction · 0.68