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

#1 2012-05-28 10:05:41

birillo
New Scratcher
Registered: 2012-04-11
Posts: 4

Missing features

I am using Scratch to teach the programming basics to beginners. In the "operators" section, I think there should be two more: a "power" operator (maybe like the ^ used in spreadsheets) and an "int" function (to get the integer part of a number). Any opinions?

Franco - Italy

Offline

 

#2 2012-05-28 10:46:44

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

Re: Missing features

I support. Scratch has many missing blocks when it comes to Operators blocks.


Why

Offline

 

#3 2012-05-28 10:49:09

birillo
New Scratcher
Registered: 2012-04-11
Posts: 4

Re: Missing features

Sure, there could be tons more. But at least those two would help my kids working with numbers, divisions, digits, and stuff like that.

Offline

 

#4 2012-05-28 11:07:00

ManaUser
Scratcher
Registered: 2009-03-11
Posts: 100+

Re: Missing features

Definitely. I always thought it was strange that it has trig functions and "e to the power of" and stuff, but not just plain power. I'm a little less sure about "int" (also known as
"floor") because it does have "round" which can be used for the same purpose with a little extra work (just subtract 0.5 first), but but there's certainly no harm in adding it anyway.

Last edited by ManaUser (2012-06-04 12:12:30)


http://i.imgur.com/SPYSM.gif http://i.imgur.com/t9k1Z.gif http://i.imgur.com/OwYVa.gif http://i.imgur.com/0qlZq.gif

Offline

 

#5 2012-05-28 13:48:12

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

Offline

 

#6 2012-05-28 19:52:27

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

Re: Missing features

Support

Offline

 

#7 2012-05-28 21:33:28

DeltaFoxtrot07
New Scratcher
Registered: 2012-05-28
Posts: 3

Re: Missing features

I agree with this because the program could be much easier to work with if we had some more blocks.

Offline

 

#8 2012-05-28 21:44:22

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

Re: Missing features

I do not support because there are plenty of workarounds and you can calculate exponets as Scimonster said.


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

 

#9 2012-05-28 21:56:42

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Missing features

You can raise a number to another by doing one or the other. You get the same result either way.

([10 ^ v] of ((power) * ([log v] of (base))))
([e ^ v] of ((power) * ([ln v] of (base))))

Last edited by chanmanpartyman (2012-05-28 21:57:24)

Offline

 

#10 2012-05-29 09:32:55

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

Re: Missing features

I would like a (() ^ ()) block.

Offline

 

#11 2012-05-29 16:09:29

birillo
New Scratcher
Registered: 2012-04-11
Posts: 4

Re: Missing features

I took a look at the workarounds, but I am thinking about my students: they don't know logarithms (for the next two years, at least) and I would like something simpler than that loop. "power" and "int/floor" are staples in spreadsheets and other languages, I am asked by my students why they are not there. Could use "round", though.

Offline

 

#12 2012-06-02 05:22:01

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Missing features

I support.


http://trinary.tk/images/signature_.php

Offline

 

#13 2012-06-02 06:28:51

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Missing features

Well you could show them the logarithm method and just say THAT it works, you don't need to explain HOW.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#14 2012-06-04 08:46:04

birillo
New Scratcher
Registered: 2012-04-11
Posts: 4

Re: Missing features

I would prefer to avoid the "trust-me-you-will-learn-it-later" routine... It raises a wall, and, frankly, is not generally helpful at 13-14. Also, when they ask "it's there in Excel and Calc, why not here?", it's tough to answer. Of course, these may seem my personal considerations, but I know my kids well enough.

Offline

 

#15 2012-06-04 08:48:44

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Missing features

You could modify the source code and add that block, but that wouldn't work online  sad

Offline

 

#16 2012-06-04 09:16:22

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

Re: Missing features

roijac wrote:

You could modify the source code and add that block, but that wouldn't work online  sad

By that logic, we would only need like 3 blocks to begin with to get us started and then we could just modify the source code to get more blocks  tongue


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

 

#17 2012-06-04 14:42:15

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Missing features

roijac wrote:

You could modify the source code and add that block, but that wouldn't work online  sad

Not many new Scratchers know Squeak...


http://trinary.tk/images/signature_.php

Offline

 

#18 2012-06-04 15:15:35

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Missing features

trinary wrote:

roijac wrote:

You could modify the source code and add that block, but that wouldn't work online  sad

Not many new Scratchers know Squeak...

he's a teacher...
and it's not that complicated  wink

Offline

 

Board footer