Rules - calculate absolute value

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jgrad
Normal user
Posts: 95
Joined: 29 Aug 2016, 22:03
Location: Slovenia

Rules - calculate absolute value

#1 Post by jgrad » 26 Dec 2020, 19:09

Hi all,

is there any function within ESP rules which returns absolute value of an argument?

User avatar
Ath
Normal user
Posts: 3494
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules - calculate absolute value

#2 Post by Ath » 26 Dec 2020, 19:28

Not at this moment, but you should be able to solve that with an if and a multiplication.
/Ton (PayPal.me)

Micha_he
Normal user
Posts: 372
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Rules - calculate absolute value

#3 Post by Micha_he » 27 Dec 2020, 17:52

You can use '[value]^2^.5'

User avatar
Ath
Normal user
Posts: 3494
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Rules - calculate absolute value

#4 Post by Ath » 27 Dec 2020, 19:09

TD-er made a PR today that includes a lot of functions, including abs...
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Rules - calculate absolute value

#5 Post by TD-er » 27 Dec 2020, 20:05

N.B. the ABS function is not yet included in the test build I made.

Post Reply

Who is online

Users browsing this forum: No registered users and 85 guests