Share this page

# lrc_save_float

Parameterization ("save") Functions

Saves a floating point value to a string parameter.

    int lrc_save_float( const char* param_name, float val );

    int lrc_save_float_by_ref( const char* param_name, float *val );

param_name | The name of the string parameter in which to store the value.
val | The value to be saved.

The lrc_save_float function saves a floating point value to a string parameter.

The lrc_save_float_by_reffunction saves the floating point value pointed to by "val" to a string parameter.

VuGen generates these functions as commented-out calls. To use the parameter, change the recorded param_name argument to a meaningful name and uncomment the call.

## Return Values

lrc Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

This example saves 150.34 float-type value to a string:

float var= lrc_float("150.34");

lrc_save_float("param-name",var);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: