xref: /PHP-8.1/Zend/tests/div_001.phpt (revision a9398056)
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--EXPECT--
29float(394758.39454545453)
30float(394758.39454545453)
31float(394758.39454545453)
32Done
33