Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function toTwosComp (num) {
- console.log((parseInt((num >>> 0), 10).toString(2)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement