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