Share this page

# lrc_currency

Type Conversion From String

Converts a string into a currency value.

    CY lrc_currency( const char* str );

    CY* lrc_currency_by_ref( const char* str );

str | A character string containing a currency value.

The lrc_currency function returns a currency value when a character string representing a currency value is input.

The lrc_currency_by_ref function returns pointer to a currency struct when a character string representing a currency value is input.

## Return Values

lrc Return Values

## Parameterization

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

## Example

This example converts the "55.05" string into the currency value 55.05:

    CY SAcur = lrc_currency("55.05");

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