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


Groups > comp.lang.javascript > #22426

Re: Not quite one

From Joao Rodrigues <groups_jr-1@yahoo.com.br>
Newsgroups comp.lang.javascript
Subject Re: Not quite one
Date 2013-12-27 11:50 -0200
Organization Aioe.org NNTP Server
Message-ID <l9k0jj$c7$1@speranza.aioe.org> (permalink)
References <7e00b5d4-3ff8-461e-8571-15f397e92766@googlegroups.com>

Show all headers | View raw


Em 27/12/2013 11:28, jonas.thornvall@gmail.com escreveu:
> Regarding arithmetic in programming languages and general one have to wonder are they fucking with us.
>
> Ecmascript have had 15 years to implement descent arithmetic but they still can not perform a simple division by 10 to more then a 5 digit real.

<snip>

> Could anyone explain what is going on here?

<snip>

Please see the c.l.js FAQ:

6.1 How do I format a Number as a String with exactly 2 decimal places?
<http://pointedears.de/scripts/faq/cljs/#formatNumber>

6.2 - Why does simple decimal arithmetic give strange results?
<http://pointedears.de/scripts/faq/cljs/#binaryNumbers>

-- 
Joao Rodrigues (J.R.)

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


Thread

Not quite one jonas.thornvall@gmail.com - 2013-12-27 05:28 -0800
  Re: Not quite one Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-12-27 11:50 -0200
    Re: Not quite one jonas.thornvall@gmail.com - 2013-12-27 06:02 -0800
      Re: Not quite one "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-12-27 17:12 +0100
  Re: Not quite one John Harris <niam@jghnorth.org.uk.invalid> - 2013-12-27 21:24 +0000
    Re: Not quite one Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-12-28 20:28 +0000
      Re: Not quite one John Harris <niam@jghnorth.org.uk.invalid> - 2013-12-30 15:37 +0000
        Re: Not quite one Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-12-31 21:12 +0000
        Re: Not quite one jonas.thornvall@gmail.com - 2014-01-06 00:55 -0800
          Re: Not quite one "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-01-06 01:48 -0800
            Re: Not quite one Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-01-07 19:06 +0000
    Re: Not quite one jonas.thornvall@gmail.com - 2013-12-29 01:51 -0800
      Re: Not quite one "Michael F. Stemper" <michael.stemper@gmail.com> - 2013-12-29 15:49 -0600
        Re: Not quite one Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-29 23:06 +0100

csiph-web