DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php round decimal
$value = 1.23456789; $rounded_value = round($value, 2); // 2 is the precision here we will get 1.23
PREVIOUS
NEXT
Tagged:
#php
#decimal
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit