mirror of
https://github.com/vale981/phys512
synced 2025-03-04 17:11:42 -05:00
Adds another float example
This commit is contained in:
parent
1052fab1b8
commit
ff6c4f5543
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ Here are some floating point expressions to evaluate to illustrate roundoff:
|
|||
- `1.1 + 2.2 - 3.3`
|
||||
- `0.1 == 0.10000001`
|
||||
- `0.1 == 0.10000000000000001`
|
||||
- `3 + 1e-15`
|
||||
- `3 + 1e-16`
|
||||
- `(0.7 + 0.1) + 0.3`
|
||||
- `0.7 + (0.1 + 0.3)`
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue