Skip to content

Commit

Permalink
Binary representation of the floating-point numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
trekhleb committed Jul 26, 2021
1 parent badf301 commit 71da6df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/algorithms/math/binary-floating-point/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ I've tried to describe the logic behind the converting of floating-point numbers

> 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
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)

## Code examples

- See the [bitsToFloat.js](bitsToFloat.js) for the example of how to convert array of bits to the floating point number (the example is a bit artificial but still it gives the overview of how the conversion is going on)
Expand Down

0 comments on commit 71da6df

Please sign in to comment.