mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
17 lines
239 B
PHP
17 lines
239 B
PHP
--TEST--
|
|
Bug #72017 (incorrect truncation due to floating point precision issue)
|
|
--FILE--
|
|
<?php
|
|
var_dump(range(4.5, 4.2, 0.1));
|
|
?>
|
|
--EXPECT--
|
|
array(4) {
|
|
[0]=>
|
|
float(4.5)
|
|
[1]=>
|
|
float(4.4)
|
|
[2]=>
|
|
float(4.3)
|
|
[3]=>
|
|
float(4.2)
|
|
}
|