Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dop251/goja
/ ToInteger
Method
ToInteger
value.go:582–584 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
580
}
581
582
func
(f valueFloat) ToInteger() int64 {
583
return
floatToIntClip(float64(f))
584
}
585
586
func
(f valueFloat) toString() String {
587
return
asciiString(f.String())
Callers
nothing calls this directly
Calls
1
floatToIntClip
Function · 0.85
Tested by
no test coverage detected