summaryrefslogtreecommitdiff
path: root/Zend/tests/div_001.phpt
blob: b53c4cdc3124dd85b0fc82e07f599814280d0e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--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