ValD()

Syntax

Result.d = ValD(String$)
Description
Converts a string into a double value. The string must be a double in decimal or in scientific (exponent) format. The number parsing stops at the first non numeric character.

Parameters

String$ The string to convert.

Return value

The double value of the string.

Remarks

Strings holding an integer can also be converted with Val(), and 32-bit floats with ValF() (with less accuracy than ValD()).

Example

  Debug ValD("10.000024") ; will display 10.000024
  Debug ValD("1.2345e-2") ; will display  0.012345

See Also

ValF(), Val(), Str(), StrF(), StrD()

Supported OS

All

<- Val() - String Index - ValF() ->