Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devld/go-drive
/ Float
Method
Float
script/utils.go:78–84 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
76
}
77
78
func
(v *Value) Float() float64 {
79
f, e := v.v.ToFloat()
80
if
e != nil {
81
v.vm.ThrowTypeError(e.Error())
82
}
83
return
f
84
}
85
86
func
(v *Value) object() *otto.Object {
87
if
v.IsNil() {
Callers
4
parseValue
Function · 0.80
marshalSimple
Method · 0.80
marshalStruct
Method · 0.80
isEmptyValue
Function · 0.80
Calls
2
ThrowTypeError
Method · 0.80
Error
Method · 0.65
Tested by
no test coverage detected