Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes and no.</p> <p>According to the <a href="http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#i22294" rel="nofollow">server docs on floats</a>, the 'native' C types support up to double precision (<code>BINARY_DOUBLE</code>). However, the <a href="http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#i22289" rel="nofollow">NUMBER</a> type can store:</p> <blockquote> <ul> <li>Positive numbers in the range 1 x 10-130 to 9.99...9 x 10125 with <strong>up to 38 significant digits</strong></li> <li>Negative numbers from -1 x 10-130 to 9.99...99 x 10125 with <strong>up to 38 significant digits</strong></li> </ul> </blockquote> <p>which is more precision than <code>long double</code> on x86/amd64.</p> <p>So, you'd need to use that type instead of <code>BINARY_*</code>. Sadly, the <a href="http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci03typ.htm#autoId11" rel="nofollow">developer docs</a> say:</p> <blockquote> <p>You should not need to use <code>NUMBER</code> as an external datatype. If you do use it, Oracle returns numeric values in its internal 21-byte binary format and will expect this format on input. The following discussion is included for completeness only.</p> </blockquote> <p>On the other hand, there are also docs on:</p> <ul> <li><a href="http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci12oty.htm#i434059" rel="nofollow">using the OCINumber</a> type; </li> <li><a href="http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci19map003.htm#CEGCAEFC" rel="nofollow">OCI NUMBER Functions</a>.</li> </ul> <p>AFAICS <a href="http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci19map003.htm#i455143" rel="nofollow">OCINumberFromReal()</a> supports <code>long double</code>; and if you want even more precision, then you could use <a href="http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci19map003.htm#i460199" rel="nofollow">OCINumberFromText()</a> with decimal string.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload