Library / Numbers / Numeric contracts / NumberKind
ENUM
NumberKind
NumberKind — the subtype tag carried by a number primitive: a signed
integer (int64) XOR an unsigned integer (uint64, reached only when a value
overflows the int64 arm into (int64_max, uint64_max]) XOR a float (float64).
number->kind() returns this (a typed, MATCH-able surface). Backs the
Number value-class (Number.ev, V1 Part D). UNSIGNED is appended last so the
shipped INTEGER/FLOAT ordinals are unchanged. See number-and-complex-design.md,
number-unsigned-arm-design.md / ENVZN_CONSTITUTION I.D.i(g).
Cases 3
| Case | Description |
|---|---|
INTEGER | — |
FLOAT | — |
UNSIGNED | — |