I would change this:
0.18115942028986
to this
18.1159
How can i do with number_format or another function in php ?
number_format
$myNewValue = floor($myValue*1000000)/10000;
more at PHP FLOOR - PHP CEIL - PHP ROUND