Integer

int( )


The integer operator returns the integer part of what is within its parentheses. The integer part will have the same sign as whatever is within its parentheses. For example, if you enter the number


-14.87:


int(-14.87)


the result would be 14.