ToDouble

Category: Strings

Back to System Functions


Signature

ToDouble(text As String)

Returns

Double

Description

Converts a string into a double-precision number.

The text may include an optional sign and a decimal point. If the text is not a valid number, the result is 0.

Example

speed# = ToDouble("12.75") ratio# = ToDouble(userInput$)