Numeric Token Types
Many scalar token types describe numeric values of differing sizes and precision. These are rooted beneath the numeric token type within the scalar type hierarchy. Similar to the scalar token type, this is an abstract type representing any of the concrete types beneath it in the hierarchy
Numeric types are arranged in a hierarchy consistent with Java’s widening conversions. Note though that the same hierarchy does not hold on the settable side. That is,
IntValued extends
LongValued but
IntSettable does not extend
LongSettable. While it is safe to read an int value as a long, it is unsafe to set a long value as an int.
Last modified date: 06/14/2024