==== Wissenschaftliche Zahlendarstellung in SQL*Plus ====
=== SQL*Plus Einstellung "numwidth" ===
Ab der mit dem Parameter numwidth eingestellten Stellenzahl werden Zahlen in "scientific notation" dargestellt.
show numwidth
numwidth 10
select 1000000000 from dual;
1000000000
-----------
1,00E+09
set numwidth 12
r
1000000000
=== Rechnen ===
In SQL*Plus kann auch direkt mit EE Zahlen gerechnet werden.
sql>select 100 * 10E+03 from dual;
100*10E+03
-----------
1,00E+06
=== SQL*Plus Einstellung "numformat"- immer Zahlen in der EE Notation ausgeben ===
Der Format String für die "scientific notation" ist für to_char und SQL*Plus "EEEE", wie zum Beispiel: "999G999D99EEEE"
set numformat "999G999D99EEEE"
select 10 from dual;
10
-----------
1,00E+01
Format Modell für to_char siehe hier=> http://docs.oracle.com/cd/E11882_01/server.112/e41084/sql_elements004.htm#SQLRF00211
==== Expliziertes Wandeln mit to_char und Format Maske EEE ===
SQL>select to_char(100*10E+03,'999G999D99EEEE') from dual;
TO_CHAR(100
-----------
1,00E+06