int

Returns an int from a double.

Example

Convert the double 2306.77 into an int.

int(2306.77)

Syntax

int(double expr x)
  • x : expression evaluating to double

    Returns

    int

Notes

Converts a double expression into an int, truncating the fractional amount.