SyntaxFix
Write A Post
Hire A Developer
Questions
instead of trying & catching expressions.. its better to run regex on the string to ensure that it is a valid number..
try
catch