Function to cast string to integer

4
I know I can use the toString() function to cast an integer as a string, but is there a reverse function that I can use to case a number stored in a string attribute to an integer or real number?
asked
2 answers
6
parseInteger('22')
answered
6

Yes, there are parseInteger and parseFloat functions, for details and examples see this wiki page.

answered