Convert a floating point value to a text string.
Syntax
char * Fct_Float_2_Text(
double val,
char *str=NULL
) ;
Parameters
val
Original floating point value.
str
Optional pointer to a text buffer that will contain the results. If NULL (the default) the result text string will be a static string locate inside the function.
Return value
This function return a pointer to a text string containing a text representation of the floating point value "val"
Remarks
If you do not specify a target string and you call the function twice, the second call to the function will overwrite the value returned by the first call since they will share the same static variable.
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
See also