ToInteger Function

Description:

This function convert a string or float to an integer.

Format:

result = ToInteger(input_string)
result = ToInteger(input_float)

Parameter:

input_string

A string expression to be converted.

input_float

A float expression to be converted.

 

Example:

integer i;

i = ToInteger("56");
LOG "i = " + ToString(i);

i = ToInteger("3.14159");
LOG "i = " + ToString(i);

i = ToInteger("John");
LOG "i = " + ToString(i);

Output:

i = 56
i = 3
i = 0





Go back to the Learning center:


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