23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PI<br />

Notes • The NVL function is not ODBC compatible. Use the IFNULL function when<br />

ODBC-compatible syntax is required.<br />

PI<br />

Syntax<br />

112<br />

• The first argument to the function can be of any type.<br />

• The type of the second argument must be compatible with that of the first argument.<br />

• The type of the result is the same as the first argument.<br />

Compatibility<br />

Progress extension<br />

Returns the constant value of PI as a floating-point value.<br />

Example This example illustrates the PI function:<br />

POWER<br />

Syntax<br />

PI ( )<br />

SELECT PI () FROM SYSPROGRESS.SYSCALCTABLE;<br />

Compatibility<br />

ODBC compatible<br />

Returns expression1 raised to the power of expression2.<br />

POWER ( expression1 , expression2 )<br />

Example This example illustrates the POWER function, raising ‘3’ to the second power:<br />

SELECT POWER ( 3 , 2) '3 raised to the 2nd power'<br />

FROM SYSPROGRESS.SYSCALCTABLE;<br />

Notes • expression1 must evaluate to a numeric data type.<br />

• expression2 must evaluate to an exact numeric data type.

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

Saved successfully!

Ooh no, something went wrong!