DecimalType
Exact decimal number with specified precision and scale. Precision = total number of digits (1-38). Scale = digits after decimal point (0 to Precision). Example: DECIMAL(10,2) stores values like 12345678.99
public sealed record DecimalType : PortableType, IEquatable<PortableType>, IEquatable<DecimalType>
Constructors
DecimalType
public DecimalType(int Precision, int Scale)
Exact decimal number with specified precision and scale. Precision = total number of digits (1-38). Scale = digits after decimal point (0 to Precision). Example: DECIMAL(10,2) stores values like 12345678.99
| Parameter | Type | Description |
|---|---|---|
Precision |
Int32 |
Total digits (1-38) |
Scale |
Int32 |
Decimal places (0 to Precision) |
Properties
Precision
public int Precision { get; init; }
Total digits (1-38)
Scale
public int Scale { get; init; }
Decimal places (0 to Precision)