convert float to int

dougc

Member
Licensed User
Longtime User
While searching through the forum (for a way to convert a float to an int) I came across this code

Log(ConvertToInt("0100"))

so I thought I could use "ConvertToInt" to do the conversion but alas that is not true.

Is there a function to convert a float to int or do I have to do it manually?

thanks

dougc
 

JonPM

Well-Known Member
Licensed User
Longtime User
Do you need to round the number up and down? or just preserve the whole number?
 
Upvote 0
Top