Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14540

Re: the if condition not workiong properly

From Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid>
Newsgroups comp.lang.javascript
Subject Re: the if condition not workiong properly
Date 2012-06-16 21:46 +0100
Organization Home
Message-ID <yccj+tFVCP3PFwJv@invalid.uk.co.demon.merlyn.invalid> (permalink)
References (3 earlier) <n1BUf3GqMg1PFwpq@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD> <d4joHGNgn51PFwfh@invalid.uk.co.demon.merlyn.invalid> <ov2gt7p84ffdfdd7krf601rnt49cgemfuv@4ax.com> <LgOtRBDYQi2PFwVE@invalid.uk.co.demon.merlyn.invalid> <ddblt7lefbg6p8tnbkqpdsksjtk0vtv1hu@4ax.com>

Show all headers | View raw


In comp.lang.javascript message <ddblt7lefbg6p8tnbkqpdsksjtk0vtv1hu@4ax.
com>, Thu, 14 Jun 2012 20:45:24, Gene Wirchenko <genew@ocis.net> posted:

>
>
>>But just what do you think   0.5.toString(9)   will give in Chrome?
>
>     I did not know that argument to number .toString().  In IE 9, it
>gives 0.444444(lots of them).  Chrome gives something else?

You have nearly answered a question that I forgot to ask - by giving an
ambiguous answer.

What does   (0.5).toString(9).length     give in IE9 (and, if possible,
in IE10?) ?

The answer will go in <http://www.merlyn.demon.co.uk/js-flaws.htm#Auto>,
row I.  Can I remove the beta from the IE9 column heading?



As regards a previous matter, this is what a JavaScript date-neophyte
might well write to set April 15th of the current year (that appears to
be a sort of ritual day to your South) :

        D = new Date( ) ; D.setMonth(3) ; D.setDate(15) ; D
which sometimes gives May 15th, whereas
        D = new Date( ) ; D.setMonth(3, 15) ; D
and
        D = new Date(0) ; D.setMonth(3) ; D.setDate(15) ; D
should be reliable.



Another GW article in this thread :

>You will have to mess with the moon, too, to handle months.  Some
>religions may then persist in using an already-extant calendar anyway.
>Think Easter calculations.

When, in 1581 and 1751, a change to the secular calendar was enacted, a
revised Easter rule was also authorised.  The Orthodox, being anti-
Papist, ignored both.  If the secular calendar is again changed, there
should be no religious objection to making a corresponding change.
Moreover, consider the UK's Easter Act 1928 : the Church found a so-
called fixed Easter date acceptable.  OTOH, my advice is to have Easter
Sunday always on yyyy-W15-7, which differs only slightly from the effect
of the (unimplemented) Act.  That Act ought to have applied to, or been
copied by, the Dominions of the time.

-- 
 (c) John Stockton, nr London, UK.    ?@merlyn.demon.co.uk     Turnpike v6.05.
 Website  <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
 PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
 Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

the if condition not workiong properly Ganesh <ganesh.vemakoti45@gmail.com> - 2012-06-10 22:54 -0700
  Re: the if condition not workiong properly Jason C <jwcarlton@gmail.com> - 2012-06-11 02:27 -0700
  Re: the if condition not workiong properly "Tom de Neef" <tdeneef@qolor.nl> - 2012-06-11 11:35 +0200
    Re: the if condition not workiong properly Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-06-11 13:12 +0200
      Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-11 15:39 +0100
        Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-12 20:34 +0100
          Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-12 20:47 -0700
            Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-14 18:49 +0100
              Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-14 20:45 -0700
                Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 06:30 +0000
                Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-15 09:42 -0700
                Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-15 18:38 +0000
                Re: the if condition not workiong properly Stefan Weiss <krewecherl@gmail.com> - 2012-06-15 19:23 +0200
                Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-15 12:54 -0700
                Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-16 21:46 +0100
                Re: the if condition not workiong properly "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-06-17 08:03 +0000
          Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-14 11:08 +0100
            Re: the if condition not workiong properly Gene Wirchenko <genew@ocis.net> - 2012-06-14 09:23 -0700
            Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-15 19:56 +0100
              Re: the if condition not workiong properly Andrew Poulos <ap_prog@hotmail.com> - 2012-06-16 13:26 +1000
                Re: the if condition not workiong properly John G Harris <john@nospam.demon.co.uk> - 2012-06-16 11:33 +0100
                Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-17 19:42 +0100
      Re: the if condition not workiong properly Dr J R Stockton <reply1224@merlyn.demon.co.uk.not.invalid> - 2012-06-12 20:10 +0100

csiph-web