Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re:interesting floating point problem with oracle

Re:interesting floating point problem with oracle

From: <dgoulet_at_vicr.com>
Date: Tue, 25 Sep 2001 10:08:14 -0700
Message-ID: <F001.00397DD5.20010925080032@fatcity.com>

Just tried that against three of my DB's, every time it came back with 1.

____________________Reply Separator____________________
Author: "Adams; Matthew (GEA; 088130)" <MATT.ADAMS_at_APPL.GE.COM>
Date:       9/25/2001 7:35 AM

ran across something interesting on metalink.

from
Doc ID: Note:1012478.7

Problem Description


Doing floating point arithmetic involving multiplication and division causes unpredictable results. For example, if you issue the following select statement from a SQL*Plus session, the result would be "~" which is incorrect.

select 62.323/62.323 from dual;



Matt Adams - GE Appliances - matt.adams_at_appl.ge.com "Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi."

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.19">
<TITLE>interesting floating point problem with oracle</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>ran across something interesting on metalink.</FONT>
</P>
<BR>

<P><FONT SIZE=2>from</FONT>
<BR><FONT SIZE=2>Doc ID:&nbsp; Note:1012478.7 </FONT>
</P>
<BR>

<P><FONT SIZE=2>Problem Description</FONT>
<BR><FONT SIZE=2>===================</FONT>
</P>

<P><FONT SIZE=2>Doing floating point arithmetic involving multiplication and
division</FONT>
<BR><FONT SIZE=2>causes unpredictable results.&nbsp; For example, if you issue
the following</FONT>
<BR><FONT SIZE=2>select statement from a SQL*Plus session, the result would be
&quot;~&quot; which</FONT>
<BR><FONT SIZE=2>is incorrect.</FONT>
</P>

<P><FONT SIZE=2>select 62.323/62.323 from dual;</FONT>
</P>

<P><FONT SIZE=2>----</FONT>
<BR><FONT SIZE=2>Matt Adams - GE Appliances - matt.adams_at_appl.ge.com</FONT>
<BR><FONT SIZE=2>&quot;Doing linear scans over an associative array is

like</FONT>

<BR><FONT SIZE=2>trying to club someone to death with a loaded Uzi.&quot;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; - Larry Wall (creator of Perl) </FONT>
</P>

</BODY>
</HTML>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: dgoulet_at_vicr.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Sep 25 2001 - 12:08:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US