1--TEST-- 2Double precision is used for floating point calculations 3--FILE-- 4<?php 5var_dump (0.002877 == 2877.0 / 1000000.0); 6var_dump (substr (sprintf ("%.35f", 0.002877), 0, 10)); 7?> 8--EXPECT-- 9bool(true) 10string(10) "0.00287699" 11