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

#1 2012-12-01 04:27:42

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Mod + Round scripts

In operators what does "mod" and "round" do/mean? I assumed "round" meant like rounding  like 16 rounded by 10 is 20. But there is only one number you can type in it so can somebody please tell me what mod and round does/means?


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&action=onlineStatus&online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

#2 2012-12-01 05:26:31

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Mod + Round scripts

() mod () - 1st input is the number to be divided. 2nd input is the divisor. The reporter will report the remainder when the 1st input is divided by the 2nd input.

round () - Rounds off the number in the input to a whole number; removing any decimals.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-12-01 05:33:47

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Re: Mod + Round scripts

Thanks


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&action=onlineStatus&online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

Board footer