You can use number_format() to display a number to 2 decimal places PHP
$number = 215;
<?php echo number_format((float)$number, 2, '.', ''); ?>
Magento, OpenCart, Joomla, wordpress, PHPBB, Core PHP, jQuery, Javascript professional elancer.
Home » Posts filed under PHP How do I format numbers to have only two decimal