Click or drag to resize

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)
Syntax
public static string ToDecimal(
	this double pValue,
	int pDecimal = 2
)

Parameters

pValue
Type: SystemDouble
Value to formatted
pDecimal (Optional)
Type: SystemInt32
Number of decimal places

Return Value

Type: String

Usage 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
Declaration statement
Using Velo.Data.Helper
See Also