function int
Returns the integer part of X.
Syntax
result = int(X)
Arguments
X: | a real number. |
Examples
To print the integer part of the real number -6.7 which is -6, type:
print int(-6.7)
See also
function round
Returns the integer part of X.
Syntax
result = int(X)
Arguments
X: | a real number. |