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

#51 2012-03-26 17:34:24

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: "Round to" block

What's a stack block?

Offline

 

#52 2012-03-26 18:41:04

mitchboy
Scratcher
Registered: 2011-11-29
Posts: 59

Re: "Round to" block

TorbyFork234 wrote:

What's a stack block?

This.


Quote of the week: "I am NOT being DRAMATIC!" ~Looney Tunes
Check out my newest game here!

Offline

 

#53 2012-03-27 15:25:16

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: "Round to" block

mitchboy wrote:

TorbyFork234 wrote:

What's a stack block?

This.

100%.
The blocks that stack up. Like,

wait (3) secs
clear
switch to costume [costume1 v]

Offline

 

#54 2012-03-30 12:49:30

mitchboy
Scratcher
Registered: 2011-11-29
Posts: 59

Re: "Round to" block

bump


Quote of the week: "I am NOT being DRAMATIC!" ~Looney Tunes
Check out my newest game here!

Offline

 

#55 2012-03-31 22:05:53

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: "Round to" block

RedRocker227 wrote:

veggieman001 wrote:

RedRocker227 wrote:

Ehh, I guess it would be more convenient. I never need to use those functions anyway though.

:3

I know what they are, silly :> I mean that the chances are, I'll never need to use either of them in my project :3

I can think of several projects that I'd need to use them.


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#56 2012-04-01 15:37:54

360-International
Scratcher
Registered: 2011-07-17
Posts: 100+

Re: "Round to" block

RedRocker227 wrote:

veggieman001 wrote:

I support. They should add these blocks as well:

floor ()
ceil ()

That can be done already  wink  For floor, it's

(round((Number)-[0.5]))
and for ceiling it's
(round((Number)+[0.5]))

For floor, it's

(round((Number)-[0.4999999999999999999999998]))
because 0 would round down to -1, but 0.000000000000001 would round to 0.


https://lh4.googleusercontent.com/Oib6kyze-OrCFIRlqL6HYnWuHBQp1GfFoh5CkBlZGe3_9WCk-_DDwgfFrnD_mxJ_x2b18hMUyV2KVtIDiLdebyWaQQ6fbpKpZs-8auVep1zoSgOv-iA

Offline

 

#57 2012-04-04 12:29:49

mitchboy
Scratcher
Registered: 2011-11-29
Posts: 59

Re: "Round to" block

bump


Quote of the week: "I am NOT being DRAMATIC!" ~Looney Tunes
Check out my newest game here!

Offline

 

#58 2012-04-04 18:22:23

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: "Round to" block

support!

Offline

 

#59 2012-04-04 18:59:40

Daroach1
Scratcher
Registered: 2011-09-11
Posts: 1000+

Re: "Round to" block

I give my full support to this.


http://i47.tinypic.com/v83mhl.png

Offline

 

#60 2012-04-04 19:10:38

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: "Round to" block

360-International wrote:

RedRocker227 wrote:

veggieman001 wrote:

I support. They should add these blocks as well:

floor ()
ceil ()

That can be done already  wink  For floor, it's

(round((Number)-[0.5]))
and for ceiling it's
(round((Number)+[0.5]))

For floor, it's

(round((Number)-[0.4999999999999999999999998]))
because 0 would round down to -1, but 0.000000000000001 would round to 0.

No, floor(0)=1, as the definition is "floor(x)=the largest integer not greater than x". As neither -1 or 0 are integers, it'll equal 1. floor(0.0000001)=1 also.


Why

Offline

 

#61 2012-04-06 02:20:05

360-International
Scratcher
Registered: 2011-07-17
Posts: 100+

Re: "Round to" block

RedRocker227 wrote:

360-International wrote:

RedRocker227 wrote:

That can be done already  wink  For floor, it's

(round((Number)-[0.5]))
and for ceiling it's
(round((Number)+[0.5]))

For floor, it's

(round((Number)-[0.4999999999999999999999998]))
because 0 would round down to -1, but 0.000000000000001 would round to 0.

No, floor(0)=1, as the definition is "floor(x)=the largest integer not greater than x". As neither -1 or 0 are integers, it'll equal 1. floor(0.0000001)=1 also.

0 is the largest integer not greater than (less than or equal to) 0. Also, both -1 and 0 are integers, as integers are the units of the set of numbers that include the whole numbers and their opposites. You may be thinking of natural numbers, which are the counting numbers, or numbers following the arithmetical pattern (1, 2, 3, 4...).

Anyway, I support.


https://lh4.googleusercontent.com/Oib6kyze-OrCFIRlqL6HYnWuHBQp1GfFoh5CkBlZGe3_9WCk-_DDwgfFrnD_mxJ_x2b18hMUyV2KVtIDiLdebyWaQQ6fbpKpZs-8auVep1zoSgOv-iA

Offline

 

#62 2012-04-06 16:40:49

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: "Round to" block

I Support! smile  smile ):: smile  smile  smile  smile  smile  smile  smile  smile  smile  smile :


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

#63 2012-04-08 12:34:38

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: "Round to" block

Do you mean the reporter...

(round (somthing) to the nearest (whatever))
if you put in somthing invalid like
(round (somthing) to the nearest (15))
it would report

Error!


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

#64 2012-04-08 12:39:41

James07
Scratcher
Registered: 2012-04-04
Posts: 500+

Re: "Round to" block

bump


http://trinary.site40.net/images/scratchrank.php?username=James07

Offline

 

#65 2012-04-18 17:44:18

mitchboy
Scratcher
Registered: 2011-11-29
Posts: 59

Re: "Round to" block

bump


Quote of the week: "I am NOT being DRAMATIC!" ~Looney Tunes
Check out my newest game here!

Offline

 

#66 2012-04-18 19:06:50

gettysburg11
Scratcher
Registered: 2008-06-14
Posts: 1000+

Re: "Round to" block

Count me as a supporter.  smile


http://i256.photobucket.com/albums/hh184/mnacmilan/LOGO_ACMILAN-Splash.gif

Offline

 

Board footer