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

#1 2009-10-29 19:17:55

klasbricks
Scratcher
Registered: 2008-05-26
Posts: 37

Round gives always 0 on uploaded program scratch 1.4

Hi

I add some new function in my mathprogram, and it didn't work online,
after some hour i find the reseons
in my program round give allways zero when rounded a value 10,10 gives 0
i use round in other parts of program and there it seems to work, This is
first time I use round on a value comming from a array.

I had remove all sprite and code except the error one for showing this bug
http://scratch.mit.edu/projects/klastest/737923
Hit the time-glass to start when downloaded it split left table in
before and a after part, But online it onlie give zeros in the other arrays.

I hope this will make some never verion of webengine to make same result as the downloaded version.

Offline

 

#2 2009-10-30 05:11:13

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Round gives always 0 on uploaded program scratch 1.4

well its a problem with The java applet


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#3 2009-10-30 07:46:36

klasbricks
Scratcher
Registered: 2008-05-26
Posts: 37

Re: Round gives always 0 on uploaded program scratch 1.4

Yes, i hope scratch team will make it work the same on server and clients, is this the place too reports bugs??

Offline

 

#4 2009-10-31 04:09:19

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: Round gives always 0 on uploaded program scratch 1.4

Just add a plz dwnlod in comments and all the community will understand (all my Projects have that tag)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#5 2009-10-31 04:19:24

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

Re: Round gives always 0 on uploaded program scratch 1.4

klasbricks wrote:

Yes, i hope scratch team will make it work the same on server and clients, is this the place too reports bugs??

Yes, this is the place to report bugs...I'll take a look at it, thanks.

Okay, it looks like it is a problem for European style floating point numbers (those with a comma for a decimal marker).  I have entered it into the bug system.  Thanks for pointing this out.

fanofcena wrote:

Just add a plz dwnlod in comments and all the community will understand (all my Projects have that tag)

But it's so much nicer when a project works online too.  To me, it's worth the extra effort because I know more people will give it a try  smile


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

Offline

 

#6 2009-11-01 16:29:40

klasbricks
Scratcher
Registered: 2008-05-26
Posts: 37

Re: Round gives always 0 on uploaded program scratch 1.4

Thanks adding the bug,
More testing
Now I pinpoint the error i had in my math program when uploaded it.
Jave engine handles only 9.9 and treat 9,9 as a no number if value is precalculate in a array they only get out zeros. Work around always use 9.9

On scratch on computer both 9.9 and 9,9 is treaded as numbers.
Test program to see the bug:
http://scratch.mit.edu/projects/klastest/739323
click on program code to run it.

I always test my stuff from web many times it works different often, timing problems, but rewrite code to better making it work on both platfrom,  but in case it stopped total working and it was harder.

Offline

 

Board footer