python float to int syntax code example
Example 1: for num in value means in python
>>> n = -37
>>> bin(n)
'-0b100101'
>>> n.bit_length()
6
Example 2: float to int in python
# convert float to int
int(2.0) #output :2
>>> n = -37
>>> bin(n)
'-0b100101'
>>> n.bit_length()
6
# convert float to int
int(2.0) #output :2