Int
Coerces a numeric value to int by truncating toward zero.
Category: Type
Returns: int
Signature
Int(value)
Examples
Int(3.9) // 3
Int(-2.7) // -2
Int(score / divisor) // truncate a division result
Unlike Round, which rounds to the nearest integer (halves round away from zero), Int drops the fractional part. For ceiling behavior, see Ceil.