Open CASCADE Technology
6.5.4
|
Convertion of CString to Real and reciprocally
#include <OSD_Real2String.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | OSD_Real2String () |
Standard_Boolean | RealToCString (const Standard_Real aReal, Standard_PCharacter &aString) const |
Converts aReal into aCstring in exponential format with maximum 17 digits. The size of the destination string must be sufficient (at least 23 characters) The decimal separator account for locale setting, but neither thousand separator nor grouping of digits in the output string. | |
Standard_Boolean | CStringToReal (const Standard_CString aString, Standard_Real &aReal) |
Converts aCstring representing a real. The first occurence of the decimal separator (comma or period) defines it values for further readings. Neither thousand separator nor grouping of digits are allowed in the CString |
Standard_Boolean OSD_Real2String::CStringToReal | ( | const Standard_CString | aString, |
Standard_Real & | aReal | ||
) |
Standard_Boolean OSD_Real2String::RealToCString | ( | const Standard_Real | aReal, |
Standard_PCharacter & | aString | ||
) | const |