Please enable JavaScript to view this site.

Converts a specified value to a double-precision floating-point number. Empty strings are converted to zero. Boolean values are converted to zero for false or one for true. All other conversions are done using NumberFormatInfo.InvariantInfo. If the conversion fails an exception is thrown.

 

double ToDouble(object value)

 

value

The value to convert.

Example

ToDouble("12.7")

Returns the double value 12.7.

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC