conversion-library / intToMoney
Function: intToMoney()
ts
function intToMoney(num: number, symbol?: string): string
intToMoney
version: v0.0.12+Parameters
• num: number
Enter int
• symbol?: string
symbol, example: ¥, $
Returns
string
money
Example
ts
intToMoney(1234567)
// '1,234,567'
intToMoney(1234567, '$')
// '$ 1,234,567'