isIntegral
isIntegral(): Boolean;
The isIntegral method of the Any primitive type returns true if any of the following conditions is true for type of the value and the value of the receiver; otherwise the method returns false.
-
The type is an Integer
-
The type is an Integer64 and the value can fit in an Integer
-
The type is a Decimal, the value is a whole number, and the value can fit in an Integer
-
The type is a Real, the value is a whole number, and the value can fit in an Integer
If the isIntegral method returns true, the receiver can be type‑converted to an Integer primitive type without any loss of data.
2020.0.01 and higher