POV-Ray : Newsgroups : povray.beta-test : while bug ? Server Time
30 Jul 2024 22:25:31 EDT (-0400)
  while bug ? (Message 11 to 20 of 27)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 7 Messages >>>
From: Slime
Subject: Re: while bug ?
Date: 10 Oct 2001 10:29:28
Message: <3bc45b48$1@news.povray.org>
Note that counting in integers will work fine, and so should counting by
fractions that are non-repeating decimals in binary, such as .25, .125, and
.0625.

- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]

"Francois Labreque" <fla### [at] videotronca> wrote in message
news:3BC### [at] videotronca...
>
>
> Mael wrote:
>
> > ok, thank you, it's clear.. we can't trust computers for maths :)
>
>
> Yes we can.  As long as we remembers that computers do not have the same
> number of fingers to count on.
>
> --
> /*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
> /*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
> /*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
> /*   videotron.ca  */}camera{location<6,1.25,-6>look_at a orthographic}
>


Post a reply to this message

From: Warp
Subject: Re: while bug ?
Date: 10 Oct 2001 10:44:44
Message: <3bc45edc@news.povray.org>
Slime <noo### [at] hotmailcom> wrote:
: Note that counting in integers will work fine

... as long as they are not too big.

  Of course the integers you can handle accurately with a double type are
quite big (several thousands of millions...).


-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Greg M  Johnson
Subject: Re: while bug ?
Date: 11 Oct 2001 10:22:44
Message: <3BC5AAE4.2D531AF1@aol.com>
Warp wrote:

> (several thousands of millions...).

Now *there's* a phrase to cause anxiety in an American listening to an
international audience.

thousand=1E03
million = 1E06

thousand millions=1E09?


Post a reply to this message

From: Trevor Quayle
Subject: Re: while bug ?
Date: 11 Oct 2001 10:40:03
Message: <3bc5af43$1@news.povray.org>
I had a discussion at work here about that once:

In the US:
million = 10^6
billion = 10^9  (thousand million)

In UK:
million = 10^6
billion = 10^12 (million million)


Read this article from the Straight Dope:
http://www.straightdope.com/mailbag/mgazilli.html

-tgq

"Greg M. Johnson" <"gregj56590[:-0]"@aol.com> wrote in message
news:3BC5AAE4.2D531AF1@aol.com...
> Warp wrote:
>
> > (several thousands of millions...).
>
> Now *there's* a phrase to cause anxiety in an American listening to an
> international audience.
>
> thousand=1E03
> million = 1E06
>
> thousand millions=1E09?
>


Post a reply to this message

From: Warp
Subject: Re: while bug ?
Date: 11 Oct 2001 11:37:36
Message: <3bc5bcbf@news.povray.org>
Greg M. Johnson <"gregj56590[:-0]"@aol.com> wrote:
:> (several thousands of millions...).

: Now *there's* a phrase to cause anxiety in an American listening to an
: international audience.

  I know the 'billion' problem in the UK/US, so I deliberately used the
term "thousands of millions" instead. I don't know how good it sounds, but
I don't care; I don't want to cause confusion.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Greg M  Johnson
Subject: Re: while bug ?
Date: 11 Oct 2001 12:11:20
Message: <3BC5C457.3954809B@aol.com>
and "thousand" is 10^3.

Trevor Quayle wrote:

> I had a discussion at work here about that once:
>
> In the US:
> million = 10^6
> billion = 10^9  (thousand million)
>
> In UK:
> million = 10^6
> billion = 10^12 (million million)
>


Post a reply to this message

From: Greg M  Johnson
Subject: Re: while bug ?
Date: 11 Oct 2001 13:08:49
Message: <3BC5D1D0.24B313B8@aol.com>
Warp wrote:

> term "thousands of millions" instead. I don't know how good it sounds, but
> I don't care; I don't want to cause confusion.

Is that 10^9?


Post a reply to this message

From: Warp
Subject: Re: while bug ?
Date: 11 Oct 2001 19:17:03
Message: <3bc6286f@news.povray.org>
Greg M. Johnson <"gregj56590[:-0]"@aol.com> wrote:
:> term "thousands of millions" instead. I don't know how good it sounds, but
:> I don't care; I don't want to cause confusion.

: Is that 10^9?

  If you take a million one thousand times, how much do you get?-)

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Tom Melly
Subject: Re: while bug ?
Date: 12 Oct 2001 10:24:39
Message: <3bc6fd27@news.povray.org>
"Mael" <mae### [at] hotmailcom> wrote in message news:3bc43f4f@news.povray.org...
> isn t it strange to get a roundoff error for only 10 additions  ? i thought
> pov was more precise :(
>

On that subject, a recent faq wot I wrote (corrections and/or criticisms happily
accepted - and please note the very long url)

http://www.ccl.com/cgi-bin/protonfaq.cgi?faq=itemconfigwhydowetalkofaccuracynots
izeforfloatingpointnumbers


Post a reply to this message

From: Greg M  Johnson
Subject: Re: while bug ?
Date: 12 Oct 2001 14:00:46
Message: <3BC72F71.25A8D9A0@aol.com>
10^9, unless outside the territorial United States, ha mon?

Warp wrote:

>   If you take a million one thousand times, how much do you get?-)


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 7 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.