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

#26 2012-02-09 20:15:47

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: "Round to" block

I think it only works for users who had it enabled while it was available (@the experimental viewer)


Posts: 20000 - Show all posts

Offline

 

#27 2012-02-09 20:22:58

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: "Round to" block

mitchboy wrote:

legoscratch wrote:

mitchboy wrote:


That takes me to the home page for some reason.

Weird... it works for me.  Maybe it logs you out for some reason...?

I am using a Windows XP computer and it doesn't log me out. Some other people have reported this too. I've tried Chrome, Firefox, and IE, so it's not the browser.

Should this go in another topic? It seems like a bug/glitch.  smile


Get ready for domination of:  tongue

Offline

 

#28 2012-02-12 14:23:47

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

Re: "Round to" block

coolhogs wrote:

mitchboy wrote:

legoscratch wrote:


Weird... it works for me.  Maybe it logs you out for some reason...?

I am using a Windows XP computer and it doesn't log me out. Some other people have reported this too. I've tried Chrome, Firefox, and IE, so it's not the browser.

Should this go in another topic? It seems like a bug/glitch.  smile

The original topic was about adding a block to Scratch. Now, lets get back on topic.  smile


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

Offline

 

#29 2012-02-13 12:28:58

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

Re: "Round to" block

veggieman001 wrote:

I think it only works for users who had it enabled while it was available (@the experimental viewer)

Ah, that'll be it.


Why

Offline

 

#30 2012-02-16 18:25:21

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

 

#31 2012-02-17 11:48:41

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

Re: "Round to" block

Come on, I only have 5 supporters(not counting me)  sad


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

Offline

 

#32 2012-02-17 12:20:37

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: "Round to" block

RedRocker227 wrote:

veggieman001 wrote:

I think it only works for users who had it enabled while it was available (@the experimental viewer)

Ah, that'll be it.

Yes, I think so too. It also works fine for me.

Offline

 

#33 2012-02-18 11:33:18

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

Re: "Round to" block

K-Jam wrote:

that would be useful if you wanted something to snap to a grid or something

Exactly.
@rdococ: Do you support my idea?


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

Offline

 

#34 2012-02-19 12:24:43

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

Re: "Round to" block

veggieman001 wrote:

I think it only works for users who had it enabled while it was available (@the experimental viewer)

You're probably right.


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

Offline

 

#35 2012-02-20 16:37:07

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

Re: "Round to" block

Anyone?


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

Offline

 

#36 2012-02-21 20:01:16

PencilFactory
Scratcher
Registered: 2011-11-11
Posts: 100+

Re: "Round to" block

It could be

<round (10) to the nearest [hole number v]>
so you could say;
<round (5.47) to the nearest [tenth v]>
and that would be 5.0

wink

Last edited by PencilFactory (2012-02-21 20:14:37)


PencilFactory is http://blocks.scratchr.org/API.php?user=PencilFactory&amp;action=onlineStatus&amp;type=text, see my computerhttp://mag.racked.eu/cimage/i9002/Achievement+get%21/Computer+crashed/mca.png

Offline

 

#37 2012-02-21 20:54:17

Haiming
Scratcher
Registered: 2011-08-20
Posts: 1000+

Re: "Round to" block

That would be pretty useful. I don't like it when it always has to round to the nearest 1. I think it shouldn't be a default block, but I think it would be a good suggestion for block makers.

Offline

 

#38 2012-02-22 15:39:11

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

Re: "Round to" block

Thanks guys. I added you to the main post now that I'm a Scratcher  big_smile .


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

Offline

 

#39 2012-02-28 15:15:35

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

 

#40 2012-02-28 15:18:53

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

Re: "Round to" block

PencilFactory wrote:

It could be

<round (10) to the nearest [hole number v]>
so you could say;
<round (5.47) to the nearest [tenth v]>
and that would be 5.0

wink

Actually, 5.47 to the nearest tenth is 5.5  tongue


Why

Offline

 

#41 2012-02-28 15:20:36

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: "Round to" block

i support


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#42 2012-03-06 17:33:06

JabberJay
New Scratcher
Registered: 2012-03-05
Posts: 75

Re: "Round to" block

I would love that! I really need that for a project!

Offline

 

#43 2012-03-06 19:28:43

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: "Round to" block

Lucario621 wrote:

bobbybee wrote:

There is already a way to do it. Heres how:

round (5/10 * 10)

I'll try to clarify this...

Let's say I have a number, 17.283. I want to round it to the nearest tenth. So I do this:

set [number v] to ( (round ( (17.283) * (10) ) ) / (10) )
17.283 times 10 is 172.83, and 172.83 rounded is 173, and 173 divided by 10 is 17.3.

It continues for other places:

set [hundreds v] to ( (round ( (x) / (100) ) ) * (100) )
set [tens v] to ( (round ( (x) / (10) ) ) * (10) )
set [ones v] to (round (x))
set [tenth v] to ( (round ( (x) * (10) ) ) / (10) )
set [hundredth v] to ( (round ( (x) * (100) ) ) / (100) )
However, I agree, a block for rounding to specific places would be handy.  smile

Yes, this is one way to do it, but if it could be simpler, why not have that?

Offline

 

#44 2012-03-06 20:57:12

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: "Round to" block

Lucario621 wrote:

bobbybee wrote:

There is already a way to do it. Heres how:

round (5/10 * 10)

I'll try to clarify this...

Let's say I have a number, 17.283. I want to round it to the nearest tenth. So I do this:

set [number v] to ( (round ( (17.283) * (10) ) ) / (10) )
17.283 times 10 is 172.83, and 172.83 rounded is 173, and 173 divided by 10 is 17.3.

It continues for other places:

set [hundreds v] to ( (round ( (x) / (100) ) ) * (100) )
set [tens v] to ( (round ( (x) / (10) ) ) * (10) )
set [ones v] to (round (x))
set [tenth v] to ( (round ( (x) * (10) ) ) / (10) )
set [hundredth v] to ( (round ( (x) * (100) ) ) / (100) )
However, I agree, a block for rounding to specific places would be handy.  smile

Cool!

@Owner. I support, as this might be complicated for some new scratchers.

Offline

 

#45 2012-03-12 16:24:24

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

 

#46 2012-03-12 18:01:18

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

Re: "Round to" block

RedRocker227 wrote:

mitchboy wrote:

legoscratch wrote:


Really?  I don't see it. Click here and see if you can find it.

That takes me to the home page for some reason.

Yeah, me too. I'm on my iPod, so it may be something to do with that...

I'm on my home computer and it's taking me to the homepage  hmm


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

 

#47 2012-03-24 15:22:07

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

 

#48 2012-03-24 16:30:13

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

Re: "Round to" block

The Scratch Team is working on enabling building your own block, why not wait until Scratch 2.0 comes out, use the workarounds, and create the block yourself. It would be useful, but it would only be made for the next update which would allow you to make it.

Offline

 

#49 2012-03-25 12:15:50

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

Re: "Round to" block

TorbyFork234 wrote:

The Scratch Team is working on enabling building your own block, why not wait until Scratch 2.0 comes out, use the workarounds, and create the block yourself. It would be useful, but it would only be made for the next update which would allow you to make it.

They will only have custom stack blocks in 2.0. D:

Offline

 

#50 2012-03-26 16:57:46

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

Re: "Round to" block

scimonster wrote:

TorbyFork234 wrote:

The Scratch Team is working on enabling building your own block, why not wait until Scratch 2.0 comes out, use the workarounds, and create the block yourself. It would be useful, but it would only be made for the next update which would allow you to make it.

They will only have custom stack blocks in 2.0. D:

D: D:


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

Offline

 

Board footer