This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » I would like to display many digits to the right of a decimal point.

#1 2009-06-23 21:39:49

FPUmathman
Scratcher
Registered: 2009-06-23
Posts: 1

I would like to display many digits to the right of a decimal point.

Right now all I can get is one digit right of a decimal. Is there a way to display a large (maybe as many as 100 or more) number of floating decimal points?

Offline

 

#2 2009-06-23 22:37:54

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: I would like to display many digits to the right of a decimal point.

I had that problem while I was making one of my projects. It was rounding down to 0, which really didn't work. I finally gave up and shared it. Online, it behaved differently, and  didn't round nearly as much. Try sharing it. It might work differently. Also, you try having a sprite say the variable. I found it rounds less then.


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2009-06-24 05:15:11

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: I would like to display many digits to the right of a decimal point.

Another approach is to stamp out the digits.  Kevin_Karplus has some projects that format output using stamping.  Here's one of them...

http://scratch.mit.edu/projects/kevin_karplus/2951


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2009-06-24 06:42:52

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

Re: I would like to display many digits to the right of a decimal point.

I can make you a project that does it if you want. I'm bored anyway.

Last edited by AlanProjects (2009-06-24 06:43:07)

Offline

 
  • Index
  •  » Advanced Topics
  •  » I would like to display many digits to the right of a decimal point.

Board footer