I am displaying currency values in javascript, I want to display $ with every value and I also want , (comma) for thousands but I don't want rounding of digits after decimal point and I also don't have a fixed limit of how many digits would be after decimal point.
It is for en-AU
for example
45000 -> $45,000
3.6987 -> $3.6987
3 -> $3
4.00 -> $4.00
Is there any built-in JavaScript method or library can help to achieve this?