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

#1 2009-01-19 22:11:52

726961
Scratcher
Registered: 2008-11-26
Posts: 100+

actual # not ____E__

on http://scratch.mit.edu/projects/726961/385614 when the variable seconds gets to a very high point, it atomaticly goes to 1.12E9 or something around there. but this does not happen in presentation mode. This to me can be very annoying. since my project is about exactness. So just sayin...


http://scratch.mit.edu/projects/726961/604658 play it now! or else...

Offline

 

#2 2009-01-20 13:08:16

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: actual # not ____E__

the E means X*10to the power of Y. this is called standard fourm. Basicly instead f, lets say 12,000,000 it is turned into 1.2*10 to the power of 7 or 1.2*10^7 or 1.2E7. Or something like 0.00005 is the same as 5*10^-5. You'll learn more about it in maths ( im doing it at the moment)

Offline

 

#3 2009-01-20 15:44:42

boinoinoi
Scratcher
Registered: 2007-06-05
Posts: 500+

Re: actual # not ____E__

Eventually, the variable would become too big a number to display, so they did that to make the number more likely to fit. However, as I have seen, this is prone to confuse many people.


http://i30.tinypic.com/335fpxx.jpg
"Boinoinoi is the only person on the forums that I expect to be wearing a monocle all the time behind that screen, so I'm sure being as classy as he is, he knows what he's doing"        http://myfastcounter.com/count.php?c_style=88&id=1284259111http://myfastcounter.com/count.php?c_style=88&id=1286068127

Offline

 

#4 2009-01-20 21:24:37

726961
Scratcher
Registered: 2008-11-26
Posts: 100+

Re: actual # not ____E__

yambanshee wrote:

im doing it at the moment

I did it last year in math (duh, where else) but is there some way to prevent it? like to script it a certian way?


http://scratch.mit.edu/projects/726961/604658 play it now! or else...

Offline

 

#5 2009-01-20 22:54:27

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: actual # not ____E__

i guess you could have 2 variables then, one for the first couple of nums, and another for the second bunch

Offline

 

#6 2009-01-20 23:50:38

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: actual # not ____E__

726961 wrote:

yambanshee wrote:

im doing it at the moment

I did it last year in math (duh, where else) but is there some way to prevent it? like to script it a certian way?

In an array. numbers don't get shortened in an array, but its a little harder to do.

Offline

 

Board footer