Lovefilm, yes or no?

David Cantrell david at cantrell.org.uk
Wed Apr 14 16:00:33 BST 2010


On Wed, Apr 14, 2010 at 04:14:17PM +0200, Jonathan McKeown wrote:

> 2^10 (1024) is roughly 10^3, so 2^4 x 2^10 is roughly 16 thousand. If you 
> can't remember the power of two nearest to 16,000, you might have to work out 
> 16x24 and add it on - 240 plus 12x12.
> 
> It's a slightly odd question, i suppose, but not exactly hard. Perhaps i'm an 
> old fart, but I'd expect most programmers to be able to answer that almost 
> without pausing for breath.

If hexadecimal is acceptable, then I could answer 0x4000 straight away.
In decimal, I'd have to figger it out, as 65536 / 2 / 2.  But who uses
decimal for constants like that?

-- 
David Cantrell | Hero of the Information Age

  Irregular English:
    ladies glow; gentlemen perspire; brutes, oafs and athletes sweat


More information about the london.pm mailing list