Skip to content

Instantly share code, notes, and snippets.

@gpbaculio
Created April 25, 2017 17:44
Show Gist options
  • Save gpbaculio/3502f61713484f189bf125a17308adaa to your computer and use it in GitHub Desktop.
Save gpbaculio/3502f61713484f189bf125a17308adaa to your computer and use it in GitHub Desktop.
console.log(9/81); // divides 9 by 81 results to 0.1111111111111111
console.log((9/81).toFixed(2)); // applying toFixed(2) results to 0.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment