Oracle math

Somebody at Oracle clearly spent a lot of time creating a quad-precision floating package that exploits the 38 digits of the built-in Number type. Pointless, yet impressive.

SQL> select to_char(exp(1)) from dual;

TO_CHAR(EXP(1))
----------------------------------------
2.71828182845904523536028747135266249776

SQL> select to_char(4*atan(1)) from dual;

TO_CHAR(4*ATAN(1))
----------------------------------------
3.14159265358979323846264338327950288422

This entry was posted in IT and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">