Initializes a new instance of the DecimalFormatAttribute class.
Namespace: Dapfor.Net.FormatsAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
| C# |
|---|
public DecimalFormatAttribute( int precision ) |
| Visual Basic |
|---|
Public Sub New ( precision As Integer ) |
| Visual C++ |
|---|
public: DecimalFormatAttribute( int precision ) |
| F# |
|---|
new : precision : int -> DecimalFormatAttribute |
Parameters
- precision
- Type: System..::..Int32
The precision.
Examples
[DecimalFormat(Precision = 4)] public double Price { get { return price; } } //The grid will show the double value 123456789.123456 as "123 456 789.1235" | |