MCPcopy 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
582func (f valueFloat) ToInteger() int64 {
583 return floatToIntClip(float64(f))
584}
585
586func (f valueFloat) toString() String {
587 return asciiString(f.String())

Callers

nothing calls this directly

Calls 1

floatToIntClipFunction · 0.85

Tested by

no test coverage detected