Pages: 1
Topic closed
Accidentally, I managed to reach infinity via division by 0 in a new method. Usually, Squeak runs out of memory and closes. But this time, it didn't close!
With the vertical AND horizontal stretch blocks, I set VERTICAL STRETCH to 0 and HORIZONTAL STRETCH to 0 to. However, what happened, it uses factors of the other, using division to accomplish it. So HORIZ / VERTICAL = infinity. What is weird, the size setting WAS actually set to infinity! I thought it wouldn't...
PICTURES:
When you go on Looks when the Size is currently 76%, then the set size to block has a default value of 76. Likewise, if the Size is infinite, then the set size to block has a default value of infinity. This is giant proof, since it's not possible to place text in number fields. And look at it, the input kept it's round shape:
Last edited by rdococ (2012-03-03 08:00:24)
Offline
Nice! How come Scratch didn't freak out on memory? Can you show us a picture of what the sprite now looks like?
Offline
The sprite didn't show when the size was set to infinity.
It's because after on, it had to divide by the error-producing calculation.
Dividing by infinity gives 0.
Offline
BoltBait wrote:
Dividing by 0 is not infinity it is undefined.
Squeak thought it was infinity.
Offline
Topic closed
Pages: 1