numba
Numbers
Turn text into a number.
How to write it
numba(<text>)
What it does
blorp always gives back text, even when someone types 7. numba("7") turns that text into a real number so math works.
It also cleans up extra spaces people type.
Example
grunk answer = blorp "Pick a number!"
grunk n = numba(answer)
oga n, "plus one is", n + 1
Tips
- If the text is not a number, numba says OOGA! with a kind hint.
- A number passed to numba comes back unchanged.