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

Function IsNumber

type.go:166–168  ·  view source on GitHub ↗

True iff the type id is encoded as a BSUP signed or unsigned integer scode.Bytes, float16 scode.Bytes, float32 scode.Bytes, or float64 scode.Bytes.

(id int)

Source from the content-addressed store, hash-verified

164// True iff the type id is encoded as a BSUP signed or unsigned integer scode.Bytes,
165// float16 scode.Bytes, float32 scode.Bytes, or float64 scode.Bytes.
166func IsNumber(id int) bool {
167 return id <= IDDecimal256
168}
169
170// True iff the type id is encoded as a float encoding.
171// XXX add IDDecimal here when we implement coercible math with it.

Callers 15

numberMethod · 0.92
comparableFunction · 0.92
hasNumberFunction · 0.92
coerceableMethod · 0.92
coerceValsFunction · 0.92
evalMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected