Discuss Scratch

Quayl
Scratcher
85 posts

Change numbers into negative and vice versa.

Hello, space quail seeks help.
For my newest project, I need to change positive numbers into negative numbers and vice versa. How would I do this with a script?

Space Quail sees everything, Space Quail knows everything, Space Quail can do anything, Space Quail can help you.
amgames
New to Scratch
100+ posts

Change numbers into negative and vice versa.

((0) - (number))


amgames
programmer ~ artist in training ~ pianist
Quayl
Scratcher
85 posts

Change numbers into negative and vice versa.

amgames wrote:

((0) - (number))

Thanks, Now my zero G simulator will work!

Space Quail sees everything, Space Quail knows everything, Space Quail can do anything, Space Quail can help you.
crab-gab
Scratcher
6 posts

Change numbers into negative and vice versa.

Just
((number) * (-1))

RPFluffy
Scratcher
1000+ posts

Change numbers into negative and vice versa.

That is some super simple math man, do you not understand the concept of:

((0) - (number))

or

((number) * (-1))

Nothing Is EVER 100%, that is just an assumption.















Some important links: Here and here or need help click Here. Eats followers, Loves helping people.
My “..” and “…” are not spelling mistakes, it means that they are ways of telling someone that I can continue more about it and that the sentence isn't ended the best way. I like putting new indents and lines so I can split up what I am talking about.




































Some important links: Here and here or need help click Here. Eats followers, Loves helping people. Check this MMO out! Kiwi = Support WHAT THAT'S IMPOSSIBLE: Through the drop down ;)
if <> :: control cstart

else :: control
end
110Percent
Scratcher
100+ posts

Change numbers into negative and vice versa.

RPFluffy wrote:

That is some super simple math man, do you not understand the concept of:

((0) - (number))

or

((number) * (-1))

Maybe he's younger, and he hasn't learned the principle of multiplying numbers by negatives.
Or, maybe he's just a little new to Scratch and doesn't know how to do that.
Please try to be a little more understanding of others, RPFluffy. Thank you.

Like my content and posts? Give me an Internet!
My 3DS Friend Code: 4785 - 7686 - 6353

Powered by DjangoBB