ExtensionToDecimal Method |  |
Format decimal numbers.
Namespace:
Velo.Data.Helper
Assembly:
Velo.Data (in Velo.Data.dll) Version: 22.2.10.1 (22.2.10.450)
Syntaxpublic static string ToDecimal(
this double pValue,
int pDecimal = 2
)
<ExtensionAttribute>
Public Shared Function ToDecimal (
pValue As Double,
Optional pDecimal As Integer = 2
) As String
Parameters
- pValue
- Type: SystemDouble
Value to formatted - pDecimal (Optional)
- Type: SystemInt32
Number of decimal places
Return Value
Type:
StringUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Double. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
See Also