Discord
Login
Community
DARK THEME

tonumber()?

tonumber() doesn't seem to be working in lua and to my knowledge there is no alternative in microscript.

Do you want help with Lua or microScript? In microScript, you can use built-in JavaScript functions:

//javascript
global.parseInt = parseInt;
global.parseFloat = parseFloat;

I literally just realized this, thank you for responding though.

Lua - code - it works for me.

init = function()
   print(tonumber("123.45")) 
end

yeah it started working again..? I really have no clue what happened there, It might have had something to do with my PC.

Validate your e-mail address to participate in the community