Skip to content

Commit

Permalink
Small reword => move 'even' for clarity
Browse files Browse the repository at this point in the history
Looks good so far, thanks for the clear description of JS types
  • Loading branch information
machineloop committed Jun 11, 2014
1 parent 52b93b7 commit 578246f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types & grammar/ch1.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ var b = -1 / 0; // -Infinity

As you can see, `-Infinity` results from a divide-by-zero where either (but not both!) of the divide operands is negative.

Contrary to mathematics, because JS uses finite number representations (IEEE-754 foating point, which will be covered later), it *is* possible to overflow (or underflow) with an operation even like addition or subtraction, in which case you'd respectively get `Infinity` or `-Infinity`.
Contrary to mathematics, because JS uses finite number representations (IEEE-754 foating point, which will be covered later), it *is* possible to overflow (or underflow) even with an operation like addition or subtraction, in which case you'd respectively get `Infinity` or `-Infinity`.

For example:

Expand Down

0 comments on commit 578246f

Please sign in to comment.