CLngInt

Converts numeric or string expression to 64-bit integer (KeyPgLongintLongInt)

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction CLngInt ( KeyPgByvalByVal expression KeyPgAsAs DataTypedatatype ) KeyPgAsAs KeyPgLongintLongInt

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

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

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

Return Value
	A KeyPgLongintLongInt value.

Description
	The CLngInt function rounds off the decimal part and returns a 64-bit 
	KeyPgLongintLongInt value.  The function does not check for an overflow, and results 
	are undefined for values which are less than -9 223 372 036 854 775 808 
	or larger than 223 372 036 854 775 807.

	The name can be explained as 'Convert to LoNG INTeger'.

	If the argument is a string expression, it is converted to numeric by 
	using KeyPgVallngValLng.

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

	'Create an LONG INTEGER variable
	Dim numeric_value As LongInt

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

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

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

Differences from QB
	* New to FreeBASIC

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

