as Integer / toInteger()
Text ↔ number conversion.
Syntax
"25" as Integer // "25".toInteger()
Description
You convert text to a number using as Integer / as Double or toInteger(). toString() converts a number to text.
Example
Loading editor…
Expected output
30 42!
When to use?
Accounting for text coming from users/files.