0 votes

How can I get an absolute value of a difference in Guided Track? I've tried ABS(-4), |-4|, and abs(-4).

by (5.8k points)

1 Answer

0 votes

I'm afraid we do not have a built-in function for that but you can get the same behavior with 

>> x_abs = x
*if: x < 0
    >> x_abs = x*(-1)

Here is a sample program you can use inside yours.

by (5.8k points)
Welcome to Guidedtrack Q&A, where you can ask questions and receive answers from other members of the community.
134 questions
144 answers
55 comments
40 users