<?php
$precision = 18;
while($precision--) {
ini_set('precision', $precision);
echo $precision . ": " . (62 + 3.99) . PHP_EOL;
}
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
- 17: 65.99
16: 65.99
15: 65.99
14: 65.99
13: 65.99
12: 65.99
11: 65.99
10: 65.99
9: 65.99
8: 65.99
7: 65.99
6: 65.99
5: 65.99
4: 65.99
3: 65.99
2: 65.99
1: 65.99
0: 65.99
- Output for 5.6.0 - 5.6.28
- 17: 65.989999999999995
16: 65.98999999999999
15: 65.99
14: 65.99
13: 65.99
12: 65.99
11: 65.99
10: 65.99
9: 65.99
8: 65.99
7: 65.99
6: 65.99
5: 65.99
4: 65.99
3: 66
2: 66
1: 7.0E+1
0: 7.0E+1
preferences:
131.56 ms | 407 KiB | 5 Q