About 414 letters
About 2 minutes
Description: Convert type to int
.
def int(x=0.0):
'''
Convert type to int
:param x: A variable
:return: The value converted to int
'''
Example:
print(int(3.1415926))
print(int('100'))
Created in 5/15/2025
Updated in 5/16/2025