#Mathematical formula with variables

1 messages · Page 1 of 1 (latest)

astral apex
#

Hey

#

Please check priv dms rq

slate basalt
astral apex
#

Would you be able to help me with something small please @slate basalt ?

manic oracle
#

I would love to help but I’m not understand the question/problem

astral apex
slate basalt
#

The formula must be written in such a way that the script calculates it correctly.

{_zr} = (100*(({_pw1} - {_pw2})/({_pw1}+{_pw2})))+100

The variables are set higher up in the script.

manic oracle
astral apex
slate basalt
manic oracle
astral apex
#

Chill lmao

slate basalt
#

I get a NaN value at the end, and when I try to set {_zr} to {_pw1}+{_pw2} I get a result of 0, when I do set {_zr} to {_pw1}+1 I get a 1. It's like the script has a problem with calculations on variables

manic oracle
#

you’re dividing by 0

slate basalt
manic oracle
slate basalt
manic oracle
#

oh so your problem is that your placeholders aren’t getting the right values?

#

sorry I am not smart

slate basalt
wise cloud
manic oracle
#

Oh are your placeholders parsed as numbers