Namespace: Dapfor.Net.FormatsAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public DoubleFormat(
int precision,
IFormatProvider formatProvider
) |
Visual Basic |
---|
Public Sub New (
precision As Integer,
formatProvider As IFormatProvider
) |
Visual C++ |
---|
public:
DoubleFormat(
int precision,
IFormatProvider^ formatProvider
) |
F# |
---|
new :
precision : int *
formatProvider : IFormatProvider -> DoubleFormat |
Parameters
- precision
- Type: System..::..Int32
The precision.
- formatProvider
- Type: System..::..IFormatProvider
The format provider.
Examples
| Copy |
---|
void DoubleFormat()
{
IFormat format = new DoubleFormat(4, CultureInfo.InvariantCulture);
UnboundValueAccessor accessor = new UnboundValueAccessor();
accessor["Price"].Value = 123456789.123456;
Console.WriteLine(format.Format(accessor["Price"]));
}
123 456 789.1235 |
See Also