MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / Float

Method Float

values.go:102–105  ·  view source on GitHub ↗

Float returns the value as float64. Will be zero-valued if the value is not numeric. If the value was originally stored as an int, it will be converted to float64 based on parsing the string representation, so there is some scope for overflows being corrected silently.

()

Source from the content-addressed store, hash-verified

100// was originally stored as an int, it will be converted to float64 based on parsing the string
101// representation, so there is some scope for overflows being corrected silently.
102func (rv ReturnValue) Float() float64 {
103 f, _ := strconv.ParseFloat(aws.StringValue(rv.av.N), 64)
104 return f
105}
106
107// Bytes returns the value as a byte slice. Will be nil if the value is not actually a byte slice.
108func (rv ReturnValue) Bytes() []byte {

Callers 4

INCRBYFLOATMethod · 0.80
TestCountersFunction · 0.80
TestValuesFunction · 0.80
HINCRBYFLOATMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestCountersFunction · 0.64
TestValuesFunction · 0.64