Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Need some JavaScript puzzles
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dr J R Stockton  
View profile  
 More options Sep 29 2008, 5:49 pm
Newsgroups: comp.lang.javascript
From: Dr J R Stockton <J.R.Stock...@physics.org>
Date: Mon, 29 Sep 2008 14:49:57 -0700 (PDT)
Local: Mon, Sep 29 2008 5:49 pm
Subject: Re: Need some JavaScript puzzles
On Sep 29, 9:02 pm, Jorge <jo...@jorgechamorro.com> wrote:

> While writing 'my version', I was going to 'logically' test the bits
> with an '&', but I have discovered that the & operator operates on
> just 32 bits, not on the 53 available in the mantissa of a 'number'
> primitive value:

Agreed, but one can access all bits of a Double for logical operations
by using arithmetic.  Working example :
<URL:http://www.merlyn.demon.co.uk/js-misc0.htm#TC>

--
  (c) John Stockton, near London, UK.  Posting with Google.
 Mail: J.R.""""""""@physics.org or (better) via Home Page at
 Web:  <URL:http://www.merlyn.demon.co.uk/>
 FAQish topics, acronyms, links, etc.; Date, Delphi, JavaScript, ....|


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.