ignore decimal

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mrpaolosarino

example. If I have 1.11. I want to make it 111. Is there any way you can do this?

Do you want it as a number or a string?

exuin | 2021-04-07 04:16

:bust_in_silhouette: Reply From: whiteshampoo
var i : int = int(str(1.11).replace(".",""))

Should work. Not tested.