Division operator (/)

Description:

Divides the value of two numeric expressions.
For integer expression, if the result is not an integer, it is truncated toward 0.

Format:

result = expression1 / expression2;

Parameters:

expression1

An integer or float expression.

expression2

An integer expression if expression1 is an integer expression, a float expression if expression1 is a float expression.

Example:

integer i;
float f;

f = 14. / 3.;
log "14. / 3. = " + ToString(f);
i = 14 / 3;
log "14 / 3 = " + ToString(i);
i = -18 / 3;
log "-18 / 3 = " + ToString(i);

Output:

14. / 3. = 4.66667
14 / 3 = 4
-18 / 3 = -6





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap