Search
 
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
Name
7+7 =