I'm using Stripe Payment. My prices are integers in cents:
050
1000
1250
2999
I manipulate those numbers with my own class and no problem with that.
I'm looking the way to convert those numbers (cents) in dollars (always with decimals even if .00) like following:
0.50
10.00
12.50
29.99
Any idea?
You need to divide cents by 100 and use
number_format
function.