Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/go-redis
/ Float64
Method
Float64
command.go:599–604 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
597
}
598
599
func
(cmd *Cmd) Float64() (float64, error) {
600
if
cmd.err != nil {
601
return
0, cmd.err
602
}
603
return
toFloat64(cmd.val)
604
}
605
606
func
toFloat64(val
interface
{}) (float64, error) {
607
switch
val := val.(
type
) {
Callers
3
array_commands_test.go
File · 0.45
generateRandomVector
Function · 0.45
command_test.go
File · 0.45
Calls
1
toFloat64
Function · 0.70
Tested by
1
generateRandomVector
Function · 0.36