Module: utils
Functions
cutInputToDecimal
▸ cutInputToDecimal(input
, decimals?
): string
Parameters
Name | Type |
---|---|
input | string |
decimals? | number |
Returns
string
Defined in
formatCommonNumber
▸ formatCommonNumber(amount
): string
Parameters
Name | Type |
---|---|
amount | undefined | string | number |
Returns
string
Defined in
formatNumber
▸ formatNumber(amount
, toFixedValue?
): string
Parameters
Name | Type |
---|---|
amount | undefined | string | number |
toFixedValue? | number |
Returns
string
Defined in
formatPercentageNumber
▸ formatPercentageNumber(amount
): string
Parameters
Name | Type |
---|---|
amount | undefined | string | number |
Returns
string
Defined in
getCommonDecimal
▸ getCommonDecimal(amount
): 2
| 3
| 4
| 5
| 6
| 8
Parameters
Name | Type |
---|---|
amount | number |
Returns
2
| 3
| 4
| 5
| 6
| 8
Defined in
getMediumGen
▸ getMediumGen(nodeList
): number
Parameters
Name | Type |
---|---|
nodeList | IAgencyGen [] |
Returns
number