MCPcopy 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
78func (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
86func (v *Value) object() *otto.Object {
87 if v.IsNil() {

Callers 4

parseValueFunction · 0.80
marshalSimpleMethod · 0.80
marshalStructMethod · 0.80
isEmptyValueFunction · 0.80

Calls 2

ThrowTypeErrorMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected