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 How to Round a Number to Two Decimal Places in PHP