Class Precision
Used for storing decimal number type precision for scale
Inherited Members
Namespace: LemonEdge.Utils.Database
Assembly: LemonEdge.Utils.dll
Syntax
[DataContract]
public class Precision
Constructors
Precision(short, short)
Creates a new decimal percision of type (number, decimalPlaces)
Declaration
public Precision(short number, short decimalPlaces)
Parameters
| Type | Name | Description |
|---|---|---|
| short | number | The number of digits in the decimal |
| short | decimalPlaces | The number of decimal places |
Properties
DecimalPlaces
The number to be used for decimal places
Declaration
public short DecimalPlaces { get; }
Property Value
| Type | Description |
|---|---|
| short |
Number
The number of digits in the decimal type
Declaration
public short Number { get; }
Property Value
| Type | Description |
|---|---|
| short |
Methods
ToString()
Returns the precision in the format (Number, DecimalPlaces)
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The precision in the format (Number, DecimalPlaces) |