Share this page

# lrc_float

Type Conversion From String

Converts a string into a floating point number.

    float lrc_float( const char* str );

    float* lrc_float_by_ref( const char* str );

str | A character string containing a floating point number.

The lrc_float function returns a floating point number when a character string containing a floating point number is input.

The lrc_float_by_ref function returns a pointer to a floating point number when a character string containing a floating point number is input.

## Return Values

lrc Return Values

## Parameterization

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

## Example

This example converts the "150.34" string into the float type value 150.34:

    float var= lrc_float("150.34");

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: