Export (0) Print
Expand All

ISNUMBER Function

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Checks whether a value is a number, and returns TRUE or FALSE.

ISNUMBER(<value>)

Term

Definition

value

The value you want to test.

TRUE if the value is numeric; otherwise FALSE.

The following three samples show the behavior of ISNUMBER.

//RETURNS: Is number
=IF(ISNUMBER(0), "Is number", "Is Not number")

//RETURNS: Is number
=IF(ISNUMBER(3.1E-1),"Is number", "Is Not number")

//RETURNS: Is Not number
=IF(ISNUMBER("123"), "Is number", "Is Not number")
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft