CDbl

Converts numeric or string expression to KeyPgDoubleDouble precision floating point

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction CDbl ( KeyPgByvalByVal expression KeyPgAsAs DataTypedatatype ) KeyPgAsAs KeyPgDoubleDouble

	KeyPgTypeType typename
		KeyPgDeclareDeclare KeyPgOperatorOperator KeyPgCastCast ( ) KeyPgAsAs KeyPgDoubleDouble
	End Type

Usage
	result = CDbl( numeric expression )
	result = CDbl( string expression )
	result = CDbl( user defined type )

Parameters
	expression
		a numeric, string, or pointer expression to cast to a KeyPgDoubleDouble value
	datatype
		any numeric, string, or pointer data type
	typename
		a user defined type

Return Value
	A KeyPgDoubleDouble precision value.

Description
	The CDbl function returns a 64-bit KeyPgDoubleDouble value. The function does not 
	check for an overflow, so be sure not to pass a value outside the 
	representable range of the KeyPgDoubleDouble data type. The name can be explained 
	as 'Convert to DouBLe'.

	If the argument to CDbl is a string expression, it is first converted to 
	numeric by using KeyPgValVal.

Example
	' Using the CDBL function to convert a numeric value

	'Create an DOUBLE variable
	Dim numeric_value As Double

	'Convert a numeric value
	numeric_value = CDbl(-12345678.123)

	'Print the result, should return -12345678.123
	Print numeric_value
	Sleep

Differences from QB
	* The string argument was not allowed in QB

See also
	* KeyPgCbyteCByte
	* KeyPgCubyteCUByte
	* KeyPgCshortCShort
	* KeyPgCushortCUShort
	* KeyPgCintCInt
	* KeyPgCuintCUInt
	* KeyPgClngCLng
	* KeyPgCulngCULng
	* KeyPgClngintCLngInt
	* KeyPgCulngintCULngInt
	* KeyPgCsngCSng

