MCPcopy
hub / github.com/tinygo-org/tinygo / cvtFloatInt

Function cvtFloatInt

src/internal/reflectlite/value.go:1554–1556  ·  view source on GitHub ↗
(v Value, t *RawType)

Source from the content-addressed store, hash-verified

1552}
1553
1554func cvtFloatInt(v Value, t *RawType) Value {
1555 return makeInt(v.flags, uint64(int64(v.Float())), t)
1556}
1557
1558func cvtFloatUint(v Value, t *RawType) Value {
1559 return makeInt(v.flags, uint64(v.Float()), t)

Callers 1

convertOpFunction · 0.85

Calls 2

FloatMethod · 0.80
makeIntFunction · 0.70

Tested by

no test coverage detected