DIY: Valid Number
We'll cover the following
Problem statement
Validate if a given string can be interpreted as a decimal number or not. Here is a list of characters that can appear in a valid decimal number:
-
Numbers -
0-9
-
Exponent -
"e"
-
Positive/negative sign -
"+"/"-"
...
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Devpath's Terms of Service and Privacy Policy