Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ad5617

Browse files
committed
Binary representation of the floating-point numbers.
1 parent 71da6df commit 2ad5617

File tree

1 file changed

+7
-0
lines changed
  • src/algorithms/math/binary-floating-point

1 file changed

+7
-0
lines changed

src/algorithms/math/binary-floating-point/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ I've tried to describe the logic behind the converting of floating-point numbers
7979

8080
> Checkout the [interactive version of this diagram](https://trekhleb.dev/blog/2021/binary-floating-point/) to play around with setting bits on and off, and seeing how it would influence the final result
8181
82+
Here is the number ranges that different floating-point formats support:
83+
84+
| Floating-point format | Exp min | Exp max | Range | Min positive |
85+
| :-------------------- | :------ | :------ | :--------------- | :----------- |
86+
| Half-precision | −14 | +15 | ±65,504 | 6.10 × 10⁻⁵ |
87+
| Single-precision | −126 | +127 | ±3.4028235 × 10³⁸| 1.18 × 10⁻³⁸ |
88+
8289
Be aware that this is by no means a complete and sufficient overview of the IEEE 754 standard. It is rather a simplified and basic overview. Several corner cases were omitted in the examples above for simplicity of presentation (i.e. `-0`, `-∞`, `+∞` and `NaN` (not a number) values)
8390

8491
## Code examples

0 commit comments

Comments
 (0)