Initializes a new instance of the DecimalFormat class with the Precision set to 2, ShortForm set to false and ShowZero set to true.
Namespace: Dapfor.Net.FormatsAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
| C# |
|---|
public DecimalFormat() |
| Visual Basic |
|---|
Public Sub New |
| Visual C++ |
|---|
public: DecimalFormat() |
| F# |
|---|
new : unit -> DecimalFormat |
Examples
void DecimalFormat() { IFormat format = new DecimalFormat(); UnboundValueAccessor accessor = new UnboundValueAccessor(); accessor["Price"].Value = 123456789.123456; Console.WriteLine(format.Format(accessor["Price"])); } //Console output: 123 456 789.12 | |