Fix

Returns the integer part of a number, rounding towards zero

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction Fix ( KeyPgByvalByVal number KeyPgAsAs KeyPgSingleSingle ) KeyPgAsAs KeyPgSingleSingle
	KeyPgDeclareDeclare KeyPgFunctionFunction Fix ( KeyPgByvalByVal number KeyPgAsAs KeyPgDoubleDouble ) KeyPgAsAs KeyPgDoubleDouble
	KeyPgDeclareDeclare KeyPgFunctionFunction Fix ( KeyPgByvalByVal number KeyPgAsAs KeyPgIntegerInteger ) KeyPgAsAs KeyPgIntegerInteger
	KeyPgDeclareDeclare KeyPgFunctionFunction Fix ( KeyPgByvalByVal number KeyPgAsAs KeyPgUintegerUInteger ) KeyPgAsAs KeyPgUintegerUInteger

Usage
	result = Fix( number )

Parameters
	number
		the floating-point number to truncate

Return Value
	Returns the integer part of number, rounding towards zero.

Description
	Equivalent to: KeyPgSgnSgn(number) * KeyPgIntInt(KeyPgAbsAbs(number)).  For example, Fix(1.3) 
	will return 1.0, and Fix(-4.9) will return -4.0.  For integer types, the 
	number is returned unchanged.

	Note: this function is also equivalent to number - KeyPgFracFrac(number).

	The Fix unary KeyPgOperatorOperator can be overloaded with user defined types.

Example
	Print Fix(1.9)  '' will print  1
	Print Fix(-1.9) '' will print -1 

Dialect Differences
	* In the CompilerOptlang-lang qb dialect, this operator cannot be overloaded.

Differences from QB
	* None

See also
	* KeyPgIntInt
	* KeyPgFracFrac
	* KeyPgCintCInt
	* KeyPgOperatorOperator

