<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d6736792\x26blogName\x3d1000+Black+Lines\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://1000blacklines.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://1000blacklines.blogspot.com/\x26vt\x3d-1513283592623172668', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

1000 Black Lines

:: digital coffee stains on the paper of the blogosphere ::

« Home | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next » | Next »

binary number to decimal number

White Open Spaces challenges 1000 Black Lines not to end this blog after 1000 posts. My response, using regular algorithm for binary, is to stop st post 1111101000.

1111101000 = (1*2^10) + (1*2^9) + (1*2^8) + (1*2^7) + (1*2^6) + (0*2^5) + (1*2^4) + (0*2^3) + (0*2^2) + (0*2^1) = 512+256+128+64+32+0+8+0+0+0=1000

Labels: , ,

leave a response