6 6 LceASCIIToFloat

LANSA Open Guide

6.6 LceASCIIToFloat

Converts a string containing a numeric into a floating point number.

VOID

LceASCIIToFloat

(char far *

StrNumericString,

 

 

 Float far *

pFloat )

  

Parameters

strNumericString

The source string containing the numeric value to be converted.

pFloat

Points to the target variable in which the value is to be returned.

  

Return Values

No return value.

Notes

LceASCIIToFloat is to be used when the development tool you are using does not provide the necessary conversion routines.

Most languages provide some type of conversion routine and it is recommended that you use the one provided by the application tool with which you are programming. Do not use this function if other routines are available.

For C application developers, this function is unnecessary since the standard C libraries supply conversion routines between strings and numeric variables.

  • LceASCIIToFloat can be called at any time.