ISNUMERIC returns 1 when the input expression evaluates to a valid numeric data type; otherwise it returns 0 (MSDN reference).
So why is the output of this query 1?
select ISNUMERIC('5d9')
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure bit taking a shot at it!! 🙂
ISNUMERIC returns 1 when the input expression evaluates to a valid integer, floating point number, money or decimal type
I think that in this case, it is considering the “d” to stand for decimal and hence considering it to be a number.
I think 5e9 should be similar as well as “e” is also used mathematically to denote exponent..Dont have SQL here to try it out right now..but i think result of 5e9 should be 1 for the same reason
EDIT : Some more context here (result of some quick googling!!)