jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZK <stevesenio...@gmail.com>
Subject Re: Adding two numeric variables with decimal places
Date Wed, 09 Nov 2011 16:51:46 GMT
You probably noticed that doesn't work!!!

We need to convert the total back to a string:


double a= new Double((vars.get("adminfee")));
double b= new Double((vars.get("bbpfee")));
double x = (a+b);

vars.put("feeTotal",Double.toString(x));


print(a);
print(b);
print(x);



ZK

--
View this message in context: http://jmeter.512774.n5.nabble.com/Adding-two-numeric-variables-with-decimal-places-tp4977855p4978325.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Mime
View raw message