xref: /PHP-7.1/Zend/tests/div_001.phpt (revision 7af945e2)
1--TEST--
2dividing doubles
3--INI--
4precision=14
5--FILE--
6<?php
7
8$d1 = 1.1;
9$d2 = 434234.234;
10
11$c = $d2 / $d1;
12var_dump($c);
13
14$d1 = 1.1;
15$d2 = "434234.234";
16
17$c = $d2 / $d1;
18var_dump($c);
19
20$d1 = "1.1";
21$d2 = "434234.234";
22
23$c = $d2 / $d1;
24var_dump($c);
25
26echo "Done\n";
27?>
28--EXPECTF--
29float(394758.39454545)
30float(394758.39454545)
31float(394758.39454545)
32Done
33