Function CSPString::GetDoubleVal() Description: Retrieves the double precision number represented by the string.
| Prototype: double GetDoubleVal() const; Arguments: No arguments (void). Return value: Returns a double number. Remarks: If the string does not represent any number, it returns zero. Also, if the string contains both numeric and non numeric characters, the evaluation stops at the first non numeric character (except the first decimal point). Examples: CSPString strNumber = "123.456"; double dblNumber = strNumber.GetDoubleVal(); See also: member functions GetIntVal(), GetInt64Val()
CSPString | Basic classes | Class Categories | Online help home | Back
www.micronovae.com Copyright © 2002 - 2004 Micronovae Ltd