mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
11 lines
229 B
Plaintext
11 lines
229 B
Plaintext
|
--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"
|