Send feedback on this topic.
Teradata.Client.Provider
Precision Property (TdParameter)



Teradata.Client.Provider Namespace > TdParameter Class : Precision Property
Gets and sets the precision of numeric, DateTime and interval data types.
Syntax
'Declaration
 
Public Overrides NotOverridable Property Precision As Byte
'Usage
 
Dim instance As TdParameter
Dim value As Byte
 
instance.Precision = value
 
value = instance.Precision
public override byte Precision {get; set;}
public:
property byte Precision {
   byte get() override;
   void set (    byte value) override;
}
Remarks

The table below defines TdParameter.Precision for each data type:

Data Type Definition Includes decimal point in precision?
Numeric

Precision is the number of digits before and after the decimal point.

No
Date and Time

Precision is total number of characters which defines a Date Time data type. For example a TdTimestamp value of '1999-05-05 09:20:30.5' will contain a precision of 21.

Yes
Interval

Precision is defined as the number of digits within the significant field. For example a TdIntervalDayToSecond value of '923 12:20:30.5' will contain a precision of 3, the number of digits contained within the day field.

No

Requirements

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

See Also

Reference

TdParameter Class
TdParameter Members