Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » What does this block mean?
- PhillipDC
-
Scratcher
17 posts
What does this block mean?
I've been coding on Scratch for about 3 years now, but I have no idea what the
([abs] of ( ))block does. Can someone tell me what it means and does?
- undeterminstic
-
Scratcher
1000+ posts
What does this block mean?
it positivizes the input so abs of -3 would be 3 and abs of 3 would be 3
- Wonkymoon8
-
Scratcher
100+ posts
What does this block mean?
abs stands for absoulute value, so if the number is positive, it stays the same, but negative, it is positive. example: abs of 5 = -5
positive numbers have more uses than negative numbers in scratch, so this block is useful for converting things that DO use negative numbers, like x or y positions, to things that DONT, like size.
positive numbers have more uses than negative numbers in scratch, so this block is useful for converting things that DO use negative numbers, like x or y positions, to things that DONT, like size.

- BigSus2
-
Scratcher
86 posts
What does this block mean?
I've been coding on Scratch for about 3 years now, but I have no idea what theAbsolute value, its a very simple and useful block whenever you need to turn some value positive.([abs] of ( ))block does. Can someone tell me what it means and does?
Essentially it takes the “absolute” value of a number, aka its distance from zero. This can only ever lead to positive numbers, therefore it converts them.
If you want an inverted absolute value you can do this:
((0) - ([abs v] of ()))
- Discussion Forums
- » Help with Scripts
-
» What does this block mean?



