Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
sql_server 217
t-sql 211
tsql 116
sqlserver 96
BRH 78
#SQLServer 66
#TSQL 56
SQL Server 34
function 11
SSMS 9

Archive · View All
August 2007 17
August 2010 8
June 2012 7
June 2011 7
November 2007 7
August 2012 6
May 2012 6
November 2011 6
August 2011 6
October 2011 6

Madhivanan's TSQL Blog

Understanding how ISNUMERIC function works

Jan 24 2014 12:00AM by Madhivanan   


Often I hear from people that ISNUMERIC function is not working properly and there is a bug. One example people refer is that both of ISNUMERIC('12d2') and ISNUMERIC (',') return the value 1. 

Well. The definition of ISNUMERIC function is Determines whether an expression is a valid numeric type. So any expression that can be converted to numeric type is valid for ISNUMERIC to return the result as 1.
SELECT ISNUMERIC('12D2')
The result is 1. Now we can validate this using the following expression
SELECT CAST('12D2' AS FLOAT)

The result is 1200. So here the number is expressed in scientific notation and D denotes as decimal and is evaluated as 12*100 

Consider another example
SELECT ISNUMERIC(',')
The result is 1. It is because comma can be converted to MONEY datatype which can accept formatted numbers.
SELECT CAST(',' AS MONEY)
The result is 0.00 

 So next time when  you see ISNUMERIC returns 1 for an expression, it means that expression is valid for being converted to any of the numeric datatypes listed here.

Tags: 


Madhivanan
2 · 40% · 12993
5
 
0
Lifesaver
 
 
 
0
Incorrect



Submit

3  Comments  

  • commented on Jan 24 2014 2:29AM
    visakhm
    186 · 1% · 253
  • Thanks Manoj and Visakh

    commented on Jan 24 2014 2:56AM
    Madhivanan
    2 · 40% · 12993

Your Comment


Sign Up or Login to post a comment.

"Understanding how ISNUMERIC function works" rated 5 out of 5 by 5 readers
Understanding how ISNUMERIC function works , 5.0 out of 5 based on 5 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]