I am current storing item prices in minor unit in the database to easily handle multiple currency eg 1500 for $15.00.
I tried using php numberFormatter
but it seems to not support minor unit and only major unit, when I parse 1500 into the formatCurrency
I get $1,500 instead of $15.00.
Would it be something that is out of numberFormatter
scope and require some other library to handle?
eg:
That´s a quick solution for your problem. I guess there are more inteligent answers.