Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Apr 17, 2012
1 parent 8761f5e commit 2c8d549
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,34 @@ The following sections outline a _reasonable_ style guide for modern JavaScript
~~num;
num>>0;
num >> 0;
num >>> 0;
// All result in 2
// Keep in mind however, that negative numbers will be treated differently...
var neg = -2.5;
parseInt( neg, 10 );
// is the same as...
~~neg;
neg >> 0;
// All result in -2
// However...
neg >>> 0;
// Will result in 4294967294
```

Expand Down

0 comments on commit 2c8d549

Please sign in to comment.