String to Float, String to Int (again)
Monkey Forums/Monkey Bug Reports/String to Float, String to Int (again)
| ||
From documentation: String to Float: Conversion is target dependant. String to Int: Conversion is target dependant. i.e. Int("1000.0") returns: C++_Tool, Glfw_Game, iOS_Game: 1000 Html5_Game: 1000 Flash_Game: 1000 Android_Game: java.lang.NumberFormatException: For input string: "1000.0" Xna_Game: System.FormatException: "Input string was not in a correct format." The Monkey code should operate in the same way on all platforms. At the moment type casting String->Int/Float works unpredictably. I suppose that sooner or later all Monkey users have happened to write their solution to this... bug. This is wrong. Maybe the time has come to eliminate this? |