Send feedback on this topic.
Teradata.Client.Provider
ToBoolean Method (TdNumber)



Teradata.Client.Provider Namespace > TdNumber Structure : ToBoolean Method
The TdNumber that is to be converted to a boolean.
Converts the value of the specified TdNumber to a Boolean.
Syntax
'Declaration
 
Public Shared Function ToBoolean( _
   ByVal value As TdNumber _
) As Boolean
'Usage
 
Dim value As TdNumber
Dim value As Boolean
 
value = TdNumber.ToBoolean(value)
public static bool ToBoolean( 
   TdNumber value
)
public:
static bool ToBoolean( 
   TdNumber value
) 

Parameters

value
The TdNumber that is to be converted to a boolean.

Return Value

true if The TdNumber is non-zero. false if the TdNumber is zero.
Exceptions
ExceptionDescription
The value of the TdNumber is Null.
Requirements
ProductVersionsPlatforms
.NET6, 7Windows, Linux, MacOS
.NET Framework4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdNumber Structure
TdNumber Members