1
I’ve been doing some research but I couldn’t find a solution. I have a float for example: 2087500, I want to leave it as follows $20,875.00.
I found several methods of passing float to currency but all have a point (.) before the last two digits to be able to work, like this 20875.00. I tried to use 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 someone help me with a functional solution please.
The last 2 numbers are decimal?
– Sergio