I've been researching this but I have not found a solution. I have for example a float: 2087500 , I want to leave it as follows $ 20,875.00
I found several methods of passing float to coin but everyone has a period (.) before the last two digits in order to work, so 20875.00 . I tried using replace (/ ([0-9] {2}) $ / g, ". $ 1") to put this point but it is only added in String. And as I said, the functions I found work only with float.
Could anyone help me with a functional solution please.