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

#1 2011-10-06 02:26:21

Grumpygrant
New Scratcher
Registered: 2011-10-06
Posts: 2

Displaying Variables to more than one decimal point

Hi
Me Newbie

How do you get the Variable to display more than i decimal point
i.e. 10 to the power -6

I have done the program just cannot get it to display more than  0.1

Thanks for looking
Grumpy

Offline

 

#2 2011-10-06 02:27:35

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Displaying Variables to more than one decimal point

Variables seem to have a bit of a problem with lengthy decimals... items in a list work better though. Maybe you could try that? ^^


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2011-10-06 02:39:55

Grumpygrant
New Scratcher
Registered: 2011-10-06
Posts: 2

Re: Displaying Variables to more than one decimal point

not even .001

Offline

 

#4 2011-10-06 07:36:15

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Displaying Variables to more than one decimal point

If you simply need the value and not the display of the variable on screen, you can simply make a script with the variable only using whole numbers and then dividing it by 10 to the power of [whatever you need]. This would only work if you have a set number of digits in your number, though.

If you need the variable for display, I don't really know of a way to make it show more digits after the decimal point.


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

Board footer