DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+7 =
Submit