You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by sebb <se...@gmail.com> on 2006/07/18 00:38:54 UTC

Re: Need some help with functions

if X=123 then

${X}=123
and
-${X}=-123

No need for any function calls, just pre-prend a "-" character where
you want to use the number.

S
On 27/06/06, Richard <rd...@siu.edu.ar> wrote:
> Hi all, i have started to use jmeter two weeks ago, i need to calculate
> the value of next function:
>
> f(x) = -x; where x is a jmeter variable... after reading jmeter help and
> some of
> the messages on the list i've tried with:
>
>     ${__javascript( (-1) * ${x} , number)}
> i've also tried
>     ${__intSum(0, - ${x}, number)}
>
> Of course isn't working LOL... i hope someone can help me with
> this...thanks in advance.
>
> Dalinger Ricardo Luis
> Toba programmer
> SIU
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org