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

Function MakeDecimalFloat64

storage/null/decimal.go:89–102  ·  view source on GitHub ↗

MakeDecimalFloat64 converts a float64 to Decimal. Example: MakeDecimalFloat64(123.45678901234567).String() // output: "123.45678901234567" MakeDecimalFloat64(123.456789012345678).String() // output: "123.45678901234568" MakeDecimalFloat64(.00000000000000001).String() // output: "0.000000000000000

(value float64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestMakeDecimalFloat64Function · 0.85
ScanMethod · 0.85

Calls 2

MakeDecimalInt64Function · 0.85
MakeDecimalBytesFunction · 0.85

Tested by 1

TestMakeDecimalFloat64Function · 0.68