<?php $my_num = 131510; $dec = number_format($my_num / 100, 2, '.', ','); echo $dec . "\n"; echo (float) $dec; $foo = "105"; echo number_format((float)$foo, 2, '.', ''); // Outputs -> 105.00
You have javascript disabled. You will not be able to edit any code.