FormatsNumberDecimal Method

Formats a decimal number based on the number of decimals it contains or even the maximum number of decimals indicated.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string NumberDecimal(
	Object value,
	int maxDecimals = 10,
	bool thousandsSeparator = true
)

Parameters

value  Object
Numeric value to format.
maxDecimals  Int32  (Optional)
Max decimals to represent.
thousandsSeparator  Boolean  (Optional)
Indicates whether thousands separator is used.

Return Value

String
String with the value formatted.

See Also