This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-02-18 12:22:54

3-14159265358979323
Scratcher
Registered: 2009-11-22
Posts: 14

glitch

I typed 9.099887766554433221 and it says 9.0998877665544331!

Offline

 

#2 2010-02-18 12:47:28

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: glitch

Where are you typing these numbers and how are displaying the results?


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2010-02-18 14:41:06

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: glitch

3-14159265358979323 wrote:

I typed 9.099887766554433221 and it says 9.0998877665544331!

Scratch rounds things to a set amount of decimal places it seems. Probably so calculations don't get too complex.

Offline

 

#4 2010-02-18 15:50:38

Bopitman99
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: glitch

RHY3756547 wrote:

3-14159265358979323 wrote:

I typed 9.099887766554433221 and it says 9.0998877665544331!

Scratch rounds things to a set amount of decimal places it seems. Probably so calculations don't get too complex.

...And not trying to be rude, but does it really matter that much? It's only off by a tiny bit!


http://img717.imageshack.us/img717/548/internetsimage.png
     http://internetometer.com/image/9678.png                                                               Don't Feed The Trolls!!!  big_smile

Offline

 

#5 2010-02-18 15:59:10

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: glitch

Bopitman99 wrote:

RHY3756547 wrote:

3-14159265358979323 wrote:

I typed 9.099887766554433221 and it says 9.0998877665544331!

Scratch rounds things to a set amount of decimal places it seems. Probably so calculations don't get too complex.

...And not trying to be rude, but does it really matter that much? It's only off by a tiny bit!

It actually does matter. If sin and cos were more accurate, sprites pointing at 0 degrees would end up going slightly to the right.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#6 2010-02-20 08:22:16

Bopitman99
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: glitch

juststickman wrote:

Bopitman99 wrote:

RHY3756547 wrote:


Scratch rounds things to a set amount of decimal places it seems. Probably so calculations don't get too complex.

...And not trying to be rude, but does it really matter that much? It's only off by a tiny bit!

It actually does matter. If sin and cos were more accurate, sprites pointing at 0 degrees would end up going slightly to the right.

I stand corrected, sorry for the inconvenience  tongue


http://img717.imageshack.us/img717/548/internetsimage.png
     http://internetometer.com/image/9678.png                                                               Don't Feed The Trolls!!!  big_smile

Offline

 

Board footer