Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

fix to 2 decimal places php

return number_format((float)$number, 2, '.', '');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fix #decimal #places #php
ADD COMMENT
Topic
Name
6+6 =