Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

two digits after decimal point in php

echo round(520.34345, 2);   // 520.34
echo round(520.3, 2);       // 520.3
echo round(520, 2);         // 520
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #digits #decimal #point #php
ADD COMMENT
Topic
Name
5+7 =