Perl Programming/Keywords/int
< Perl Programming | Keywords
The int keywordEdit
int returns the integer part of EXPRESSION or, if EXPRESSION is not specified, that of $_.
This function is inappropriate for rounding, as it truncates towards 0, and the machine-representation of floating-point numbers could return non-intuitive results.
SyntaxEdit
int EXPRESSION
int