MCPcopy Index your code
hub / github.com/Masterminds/sprig / toFloat64

Function toFloat64

numeric.go:14–16  ·  view source on GitHub ↗

toFloat64 converts 64-bit floats

(v interface{})

Source from the content-addressed store, hash-verified

12
13// toFloat64 converts 64-bit floats
14func toFloat64(v interface{}) float64 {
15 return cast.ToFloat64(v)
16}
17
18func toInt(v interface{}) int {
19 return cast.ToInt(v)

Callers 7

maxfFunction · 0.85
minfFunction · 0.85
floorFunction · 0.85
ceilFunction · 0.85
roundFunction · 0.85
execDecimalOpFunction · 0.85
TestToFloat64Function · 0.85

Calls

no outgoing calls

Tested by 1

TestToFloat64Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…