FormatsNumberDecimal Method
Formats a decimal number based on the number of decimals it contains or even the maximum number of decimals indicated.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static string NumberDecimal(
Object value,
int maxDecimals = 10,
bool thousandsSeparator = true
)
Public Shared Function NumberDecimal (
value As Object,
Optional maxDecimals As Integer = 10,
Optional thousandsSeparator As Boolean = true
) As String
- value Object
- Numeric value to format.
- maxDecimals Int32 (Optional)
- Max decimals to represent.
- thousandsSeparator Boolean (Optional)
- Indicates whether thousands separator is used.
StringString with the value formatted.