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

#1 2009-04-07 16:13:32

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

MOD function bug - Insert into list bug

Here is an example that I made up:

http://scratch.mit.edu/projects/BoltBait/480964

The online player has trouble with both the [Insert into list at position] function and the MOD function.

MOD should return an integer value.  However, you can see in the demo that it is clearly returning a float value.  The insert into list function is just completely broken.

Download the project into the development environment to see how it is supposed to function.


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#2 2009-04-07 20:51:29

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: MOD function bug - Insert into list bug

It worked fine for me


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#3 2009-04-08 00:24:52

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: MOD function bug - Insert into list bug

bosox397 wrote:

It worked fine for me

Interesting, are you on a Mac, or something?


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#4 2009-04-08 05:41:58

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

Re: MOD function bug - Insert into list bug

bosox397 wrote:

It worked fine for me

I think BoltBait's point is that the numbers returned should not have a decimal point at all - they should be of type integer (no decimal point), not just floating point numbers with zeros to the right of the decimal point.


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

Offline

 

#5 2009-04-08 23:57:36

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: MOD function bug - Insert into list bug

I am working around the problem in my Hangman game by using the ROUND function.

I'm also having the problem in my latest project with the insert bug.

I found a workaround and posted my Cribbage Solitaire game.

Last edited by BoltBait (2009-04-09 15:20:53)


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

Board footer