Delete digits after two decimal points, without rounding the value

后端 未结 15 1551
死守一世寂寞
死守一世寂寞 2020-11-29 01:04

i have value in php variable like that

$var=\'2.500000550\';
echo $var

what i want is to delete all decimal points after 2 digits.

15条回答
提交回复
热议问题