Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

double PString::AsReal (  )  const [inherited]

Convert the string to a floating point number. This number may be in decimal or exponential form. All characters up to the first illegal character for a floting point number are converted.

This function uses the standard C library strtod()# function.

Returns:
floating point value for the string.

Definition at line 2291 of file contain.cxx.

{
#ifndef __HAS_NO_FLOAT
  char * dummy;
  return strtod(theArray, &dummy);
#else
  return 0.0;
#endif
}


Generated by  Doxygen 1.6.0   Back to index