toInt() / toString()
Text ↔ number conversion.
Syntax
"25".toInt() // 42.toString()
Description
toInt converts text to an integer, toDouble to a decimal. toString converts a number to text.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
30
When to use?
Accounting for text coming from users/files.