Skip to content

Instantly share code, notes, and snippets.

@norbert-gaulia
Forked from Olical/round.js
Created August 1, 2019 23:10
Show Gist options
  • Save norbert-gaulia/490e5fc15cad52505e7729f74acbd40c to your computer and use it in GitHub Desktop.
Save norbert-gaulia/490e5fc15cad52505e7729f74acbd40c to your computer and use it in GitHub Desktop.

Revisions

  1. Oliver Caldwell created this gist Aug 22, 2011.
    3 changes: 3 additions & 0 deletions round.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    Number.round = function() {
    return (this + 0.5) << 0;
    };