Function to cast string to integer

5
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
10
parseInteger('22')
answered
7

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

answered