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

#1 2008-05-28 10:13:02

Rolling
Scratcher
Registered: 2008-05-28
Posts: 1

What is "abs"?

In Fantasy, there is an actor called "Jet_pack_girl" or something like that, and it has something red called "abs" in its script, where can I found this and what is it's use?

Thank you

Offline

 

#2 2008-05-28 10:21:41

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: What is "abs"?

The red abs block is the old version of the abs function i the math block found under numbers,

it changes a number to positive

abs(1) = 1
abs(-5) = 5


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#3 2008-05-28 16:41:49

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: What is "abs"?

Absolute value is the distance a number is from zero. Positive numbers stay positive and negative numbers turn to postive.

Offline

 

Board footer