CULng

Converts numeric or string expression to KeyPgUlongULong

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction CULng ( KeyPgByvalByVal expression KeyPgAsAs DataTypedatatype ) KeyPgAsAs KeyPgUlongULong

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

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

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

Return Value
	A KeyPgUlongULong value.

Description
	The CULng function rounds off the decimal part and returns a 32 bit KeyPgUlongULong
	value. The function does not check for an overflow. The name can be 
	explained as 'Convert to Unsigned LoNG'.

	If the argument is a string expression, it is converted to numeric by 
	using KeyPgValuintValUInt or KeyPgValulngValULng.

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

	'Create an UNSIGNED LONG variable
	Dim numeric_value As ULong

	'Convert a numeric value
	numeric_value = CULng(300.23)

	'Print the result = 300
	Print numeric_value
	Sleep

Dialect Differences
	* Not available in the CompilerOptlang-lang qb dialect unless referenced with the 
	  alias __Culng.

Differences from QB
	* New to FreeBASIC

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

