21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

External functions (UDFs)<br />

Description: Returns the bitwise XOR result of the arguments.<br />

Result type: INTEGER<br />

Syntax:<br />

bin_xor (num1, num2)<br />

Declaration:<br />

DECLARE EXTERNAL FUNCTION bin_xor<br />

INTEGER, INTEGER<br />

RETURNS INTEGER BY VALUE<br />

ENTRY_POINT 'IB_UDF_bin_xor' MODULE_NAME 'ib_udf'<br />

Library: ib_udf<br />

Added in: IB<br />

Better alternative: Internal function CEIL() / CEILING()<br />

ceiling<br />

Description: Returns the smallest whole number that is greater than or equal to the argument.<br />

Result type: DOUBLE PRECISION<br />

Syntax:<br />

ceiling (number)<br />

Declaration:<br />

DECLARE EXTERNAL FUNCTION ceiling<br />

DOUBLE PRECISION<br />

RETURNS DOUBLE PRECISION BY VALUE<br />

ENTRY_POINT 'IB_UDF_ceiling' MODULE_NAME 'ib_udf'<br />

Library: ib_udf<br />

Added in: IB<br />

Better alternative: Internal function COS()<br />

cos<br />

Description: Returns an angle's cosine. The argument must be given in radians.<br />

173

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!