mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
04c528609a
on all platforms and with all compilers.
11 lines
229 B
PHP
11 lines
229 B
PHP
--TEST--
|
|
Double precision is used for floating point calculations
|
|
--FILE--
|
|
<?php
|
|
var_dump (0.002877 == 2877.0 / 1000000.0);
|
|
var_dump (substr (sprintf ("%.35f", 0.002877), 0, 10));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
string(10) "0.00287699"
|