Hello, again :)
I am right now trying to create a decimal-hex, hex-decimal program on scratch, but there is one limitation stopping me. There is no power operator, well there is but it can only be the power of e and the power of 10, therefore I cant make this program. It would be helpfull if there was a block looked like this:
Would it be possible?
Keani.
Offline
I'm surprised we don't have this already! It would make a great addition to the program - I definitely support. For now, you can just use something along the lines of this, where y is the number, x is the exponent, and z is the result:
set z to (1) repeat (x) set z ((z) * (y)) end
That would effectively give you the result, but I admit your block would definitely be a lot better.
Offline
I do agree, that is a block that should be in scratch.
Here's a thread explaining how to do it, with other blocks
http://scratch.mit.edu/forums/viewtopic.php?pid=343511
Offline