MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / fitsFloat64

Function fitsFloat64

types/expr.go:261–264  ·  view source on GitHub ↗
(x constant.Value)

Source from the content-addressed store, hash-verified

259}
260
261func fitsFloat64(x constant.Value) bool {
262 f, _ := constant.Float64Val(x)
263 return !math.IsInf(f, 0)
264}
265
266func roundFloat64(x constant.Value) constant.Value {
267 f, _ := constant.Float64Val(x)

Callers 1

representableConstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected