Explore >> Select a destination


You are here

esham.io
| | rupertmckay.com
6.3 parsecs away

Travel
| | Rounding errors are inevitable.
| | tannerdolby.com
6.2 parsecs away

Travel
| | Rounding numbers in Python is quite common. There might be a situation where values must only be rounded to 3 decimals or some arbitrary number. Using the built-in function round() is handy but changes the original value.
| | arnorhs.dev
5.0 parsecs away

Travel
| | I read somewhere that a bitwise left shift was a faster method of removing a fraction of a floating point number in Javascript than using parseInt or Math.floor(). I wasn't surprised that parseInt was slow, since I think it parses the number as a string, but the left shift being faster than Math.floor() was a bit more puzzling to me. So I decided to make a JSPerf test to compare those three methods. Read on for the full results
| | chadaustin.me
34.4 parsecs away

Travel
| If you spend any significant time in a terminal, you've probably used tmux.