RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideString::ToDouble Method

Converts the string to a floating-point value.

Pascal
function ToDouble: double;
C++
__fastcall double ToDouble() const;

System::WideString::ToDouble converts the string to a floating-point value. The string must consist of an optional sign (+ or -), a string of digits with an optional decimal point, and an optional 'E' or 'e' followed by a signed integer. Leading and trailing blanks in the string are ignored. The DecimalSeparator global variable defines the character that must be used as a decimal point. Thousand separators and currency symbols are not allowed in the string. If the string doesn't contain a valid value, an EConvertError exception is thrown. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!