For the value
x=1.48759
I want output as
48759
example 2:
x=1.92345
output:
92345
For the value
x=1.48759
I want output as
48759
example 2:
x=1.92345
output:
92345
You can use regex
for this case:
number = 1.49921
int(re.findall(r'\.(.*)',str(number))[0])
Outputs:
49921