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

#1 2012-11-10 07:13:29

FION
New Scratcher
Registered: 2012-11-10
Posts: 2

Answer = Num1 / Num2

When I input the answer with having the decimal, the result was 'Wrong'
I don''t know how to set 'round' the answer

Offline

 

#2 2012-11-10 07:35:19

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Answer = Num1 / Num2

There's a block called (round (10))


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2012-11-10 09:49:59

FION
New Scratcher
Registered: 2012-11-10
Posts: 2

Re: Answer = Num1 / Num2

Thanks for the reply! But I cannot solve this problem although I set the formula as below:-

round ANSWER = NUM1 + NUM2

Offline

 

#4 2012-11-10 10:19:42

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Answer = Num1 / Num2

It looks to me like you want this:

set [answer v] to (round((num1)+(num2)))


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer