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



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

Parameters

input
The TdDecimal that is to be converted to a boolean.

Return Value

true if The TdDecimal is non-zero. false if the TdDecimal is zero.
Exceptions
ExceptionDescription
The value of the TdDecimal is Null.
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDecimal Structure
TdDecimal Members