FormatsAccountingAccount(String, Int32, Boolean) Method

Converts a count to the set format, with the maximum number of digits.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string AccountingAccount(
	string account,
	int digits,
	bool addTrailingZeros
)

Parameters

account  String
Accounting account to format.
digits  Int32
Number of digits to format.
addTrailingZeros  Boolean
Add zeros until the countable digits are complete.

Return Value

String
String with the a count to the set format, with the maximum number of digits.

Remarks

Ex. 430.1 will return 43000001.

Ex. 43 will return 43000000.

If addTrailingZeros = false is set, the only thing it will format is a dotted account - Ex. 430.1 will return 43000001

See Also