SpreadsheetGear 2023
IsValidNumber Method (IValues)

SpreadsheetGear.Advanced.Cells Namespace > IValues Interface : IsValidNumber Method
The number to validate.
Returns true if the specified number is a valid number, otherwise false is returned.
Function IsValidNumber( _
   ByVal number As System.Double _
) As System.Boolean
Dim instance As IValues
Dim number As System.Double
Dim value As System.Boolean
value = instance.IsValidNumber(number)
System.bool IsValidNumber( 
   System.double number


The number to validate.

Return Value

true if the number is a valid number, false otherwise.
Unlike Value, SetNumber assumes the number being placed in a cell is a valid cell number. A valid cell number is either zero, or a non-zero number which is not suffering from underflow or overflow. Positive infinity, negative infinity and NaN are not valid numbers.

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


IValues Interface
IValues Members
SetNumber Method
ValidateNumber Method