FormatsNumberPattern Method

Gets the formatting pattern to represent numeric value based on the indicated parameters.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string NumberPattern(
	int decimals = 2,
	bool thousandsSeparator = true,
	bool withoutZero = false,
	bool withoutDecimalZeros = false
)

Parameters

decimals  Int32  (Optional)
Number of decimals to represent.
thousandsSeparator  Boolean  (Optional)
Indicates whether it is formatted with a dot in the thousands.
withoutZero  Boolean  (Optional)
Indicates whether zero should be displayed.
withoutDecimalZeros  Boolean  (Optional)
Indicates whether zeros are represented in decimals.

Return Value

String
String with the format to represent number.

See Also