Parsing float string to int

Monkey Forums/Monkey Bug Reports/Parsing float string to int

bram(Posted 2013) [#1]
I'm trying to parse
Local x:Int = Int("3.4")
It works under HTML5, but under Android, the code bails out.
When I use
Local x:Int = Int(Float("3.4"))
it works.


Gerry Quinn(Posted 2013) [#2]
Monkey uses the platform string to int converters. IIRC Android bugs out on ill-formed strings.