#Weekly 5 JS
:l It's not very ingenious but it works like a charm (plus js allows me to do some funky things).
- one liner (could be shorter if I removed the while loop)
- supports decimals and negative numbers because JS
- doesn't use bitwise operators
This one shouldn't be judged, but for future reference: https://repl.it/@AdCharity/Weekly5JS#index.js
It uses bitwise operators (which aren't unique :l)