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

#1 2011-09-22 03:01:25

Daanielle
New Scratcher
Registered: 2011-09-20
Posts: 1

Rounding /:

is it possible to make scratch round a number to 1dp? I have tried to round, but it makes it a whole number. Is it even possible?

<round(

Offline

 

#2 2011-09-22 04:39:16

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

Re: Rounding /:

It is possible, here is how you can do it:

[blocks]  (( <round( (( your number  <*> 10  )) <*> 0.1  ))[/blocks]


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