MCPcopy Create free account
hub / github.com/devld/go-drive / Integer

Method Integer

script/utils.go:70–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (v *Value) Integer() int64 {
71 i, e := v.v.ToInteger()
72 if e != nil {
73 v.vm.ThrowTypeError(e.Error())
74 }
75 return i
76}
77
78func (v *Value) Float() float64 {
79 f, e := v.v.ToFloat()

Callers 7

vm_newContextWithTimeoutFunction · 0.80
vm_sleepFunction · 0.80
vm_newHashFunction · 0.80
vm_hmacFunction · 0.80
parseValueFunction · 0.80
initVarsForVmFunction · 0.80
valueToScriptEntryStructFunction · 0.80

Calls 2

ThrowTypeErrorMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected