lr_convert_double_to_double
Formats the string representation of a double value using a printf-style format specifier.
C Language
int lr_convert_double_to_double( char *source_param_name, char *format_string, char * target_param_name );
Example: lr_convert_double_to_double | Parameter Functions |
Arguments
Name | Comments |
---|---|
source_param_name | The name of the parameter containing the double to be reformatted. |
format_string | A printf-style format specifier. |
target_param_name | The parameter to contain the reformatted string. |
lr_convert_double_to_double formats the string representation of a double value using a printf-style format specifier. The target parameter is created if it does not exist.
The maximum length of the output string to be written to target_param_name is 63 characters. Create your format string accordingly.
If the input string is not a pure number string, as many characters as possible are converted. The rest are ignored. A string that does not begin with a character that can be converted causes an error.
For example:
- “1234ABCDF” is converted to 1234.
- “312.123.32.23123” is converted to 312.123 .
- “LoadRunner” and “ABC123PC” cause errors.
Return Values
This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.
Parameterization
Standard parameterization is not available for this function.