php-src/Zend/tests/div_001.phpt
2007-04-28 11:59:08 +00:00

33 lines
357 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";
?>
--EXPECTF--
float(394758.39454545)
float(394758.39454545)
float(394758.39454545)
Done