If you do this:
No error, but if you do this using the round
block:
I get TypeError: txt.indexOf is not a function
.
This only happens in the second input, so it's fine to do it in the first input. This block can be found in Libraries > Strings, multi-line input.
Possible Fix
Convert the number to text before evaluating txt.indexOf
.