val(string)

If the input string is the representation of a number (for example, “123.45”), this function returns its numeric value; otherwise, returns 0.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.