php-src/Zend/tests/div_001.phpt
2018-10-14 12:07:20 -03:00

33 lines
355 B
PHP

--TEST--
dividing doubles
--INI--
precision=14
--FILE--
<?php
$d1 = 1.1;
$d2 = 434234.234;
$c = $d2 / $d1;
var_dump($c);
$d1 = 1.1;
$d2 = "434234.234";
$c = $d2 / $d1;
var_dump($c);
$d1 = "1.1";
$d2 = "434234.234";
$c = $d2 / $d1;
var_dump($c);
echo "Done\n";
?>
--EXPECT--
float(394758.39454545)
float(394758.39454545)
float(394758.39454545)
Done