absolute value

absolute value

absolutevalue

Details

Kode wheel segment Math/Functions
Style Math
Modifiers None
Primarily WHEN/DO DO
Pre-made brains that use it Unknown

Math> Functions > absolute value

Description

This tile is a Math tile. It returns the absolute value of a number. An absolute value is the number between it and zero. So 7 absolute value is 7, while -7 absolute value is also 7. Basically it makes a negative number a positive one.

 

Example Code

 

WHEN [once] DO [numvar:number1][=][-10]

…WHEN DO [numvar:my number][=][absolute value][numvar:number1]

 

This returns my number as 10.

Modifiers

None

Other Uses

None

Comments are closed.

Powered by WordPress.com.

Up ↑

%d bloggers like this: