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

#1 2011-10-25 20:50:52

phobos24
New Scratcher
Registered: 2011-10-25
Posts: 1

Digits when showing varialbes

When setting a variable to 2/3, scratch shows 0.7.

Sorry, but from a mathematical point of view this is wrong.

Strictly speaking, 0.67 or anything similar is still wrong, but would be much better
than 0.7.

Giving the user the option to adjust the number of digits that are shown would
be a good thing.

Offline

 

#2 2011-10-25 22:00:43

efisher82
Scratcher
Registered: 2009-12-07
Posts: 100+

Re: Digits when showing varialbes

That's not really adjusting the number of digits, it's just adding support for fractions.

I support.


http://bit.ly/ApaYt4http://ow.ly/8Jemvhttp://fulltwist.net/wp-content/plugins/social-slider/icons/standard/youtube-32.png

Offline

 

#3 2011-10-26 00:28:02

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Digits when showing varialbes

If you want to show a fraction without it automatically setting, maybe you should try the spaces?

2 / 3


Mathematically speaking, rounding it would give you the right answer so it is correct. Scratch only has support for one decimal digit though, that's why.

Last edited by kayybee (2011-10-26 00:28:41)

Offline

 

Board footer