Skip to content

Math Int

The math::int function converts a number to an integer by removing its fractional part.

Syntax

math::int(<number>)

Parameters

  • number: The input number to be converted to an integer.

Returns

  • Number: The integer value of the input number.

Example

Try it out below!
math::int(3.99)

This function is useful for truncating numbers without rounding them.