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

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDecimal Structure
TdDecimal Members