Initializes a new instance of the DoubleFormat 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 DoubleFormat() |
Visual Basic |
---|
Public Sub New |
Visual C++ |
---|
public: DoubleFormat() |
F# |
---|
new : unit -> DoubleFormat |
Examples
Copy | |
---|---|
void DoubleFormat() { IFormat format = new DoubleFormat(); UnboundValueAccessor accessor = new UnboundValueAccessor(); accessor["Price"].Value = 123456789.123456; Console.WriteLine(format.Format(accessor["Price"])); } //Console output: 123 456 789.12 |