Built-in Functions → int

int() is a conversion function that returns an integer value from a double expression, truncating the fractional amount.

Signature

int(double exp)
  • double exp : an expression evaluating to double

Returns

int

Example

Convert the double 2306.77 into an int.

int(2306.77)