How to handle data in the form of 3.5527136788005e-15 in PHP gracefully
PHP中文网2017-05-24 11:33:46
0
2
1284
-3.5527136788005e-15
3.5527136788005e-15
php Under what circumstances will such scientific notation appear? Is there a function that can directly approximate 0? Have you ever encountered this?
One step to get it right:
Reference: number_format
If the decimal point exceeds a few decimal points, it will appear and can be set. If the data is not required to be accurate, rounding can be done