ToFloat Function

Description:

This function convert a string or integer to a float.

Format:

result = ToFloat(input_string)
result = ToFloat(input_integer)

Parameter:

input_string

A string expression to be converted.
 

input_integer

A integer expression to be converted.

Example:

float f;

f = ToFloat("56.34");
LOG "f = " + ToString(f);

f = ToFloat("56");
LOG "f = " + ToString(f);

f = ToFloat("John");
LOG "f = " + ToString(f);

Output:

f = 56.34
f = 56.
f = 0.





Go back to the Learning center:


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