MCPcopy Create free account
hub / github.com/brimdata/super / IsFloat

Function IsFloat

type.go:172–174  ·  view source on GitHub ↗

True iff the type id is encoded as a float encoding. XXX add IDDecimal here when we implement coercible math with it.

(id int)

Source from the content-addressed store, hash-verified

170// True iff the type id is encoded as a float encoding.
171// XXX add IDDecimal here when we implement coercible math with it.
172func IsFloat(id int) bool {
173 return id >= IDFloat16 && id <= IDFloat256
174}
175
176// True iff the type id is encoded as a number encoding and is signed.
177func IsSigned(id int) bool {

Callers 15

NewConstFromValueFunction · 0.92
castTypeFunction · 0.92
convertMethod · 0.92
CallMethod · 0.92
absMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
castToNumberFunction · 0.92
castStringToNumberFunction · 0.92
compareNumbersFunction · 0.92
EvalMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected