Introduction
Sometimes, numbers come as text and we need to change them into real numbers to do math or comparisons.
When reading user input that is typed as text but should be a number.
When getting numbers from files or websites where they are stored as text.
When converting form data that is sent as strings but needs to be numbers.
When parsing numbers from text messages or logs.
When you want to check if a string can be a number before using it.