Initializes a new instance of the DecimalFormat class.

Namespace: Dapfor.Net.Formats
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public DecimalFormat(
	int precision
)
Visual Basic
Public Sub New ( 
	precision As Integer
)
Visual C++
public:
DecimalFormat(
	int precision
)
F#
new : 
        precision : int -> DecimalFormat

Parameters

precision
Type: System..::..Int32

[Missing <param name="precision"/> documentation for "M:Dapfor.Net.Formats.DecimalFormat.#ctor(System.Int32)"]

Examples

 Copy imageCopy
void DecimalFormat()
{
    IFormat format = new DecimalFormat(4);
    UnboundValueAccessor accessor = new UnboundValueAccessor();
    accessor["Price"].Value = 123456789.123456;

    Console.WriteLine(format.Format(accessor["Price"]));
}

//Console output:
123 456 789,1235

See Also