Skip to content

Commit d107304

Browse files
committed
Typo
1 parent a162de9 commit d107304

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Floating-point arithmetic has well-known precision limitations:
1818

1919
```php
2020
var_dump((0.1 + 0.7) == 0.8); // false
21-
echo (1.4 - 1) * 100; // 40.000000000000006
22-
echo 0.7 + 0.1 - 0.8; // -1.1102230246252E-16
21+
var_dump((1.4 - 1) * 100); // 39.99999999999999
22+
var_dump(0.7 + 0.1 - 0.8); // -1.1102230246251565E-16
2323
```
2424

2525
> `bcmath` supports numbers of any size and precision up to 2,147,483,647 decimals, represented as strings.

0 commit comments

Comments
 (0)