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

Home -> Community -> Usenet -> c.d.o.server -> Storing Negative Numbers in Oracle?

Storing Negative Numbers in Oracle?

From: Sussette Blasa <stblasa_at_earthlink.net>
Date: Tue, 23 Feb 1999 10:39:37 -0800
Message-ID: <36D2F5E8.54F648A1@earthlink.net>


Hi, I hope someone could help me. I've been trying to figure out how to store this number "-118.245169" in a field called "LATITUDE". When creating the table, I created the LATITUDE field by using the "number" datatype like this: LATITUDE NUMBER(20,9), but it truncates, or actually rounds off the number to: -118.2452 . I want to use this value in a calculation, but I would like to store it without rounding it off. I'm assuming that the negative number is causing it to round off.

Any help would be appreciated...

--Sussette Received on Tue Feb 23 1999 - 12:39:37 CST

Original text of this message

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