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 -> Re: Q: float data type

Re: Q: float data type

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 8 Sep 1999 15:08:55 +0100
Message-ID: <936803100.22623.0.nnrp-10.9e984b29@news.demon.co.uk>


There is an interesting difference though. You (implicitly) specify a decimal place in number(p,s), but a float(n) has only a precision which can 'float'.

Create table t1 (n1 float(12));
insert into t1 values (12345);
insert into t1 values (0.12345);

select * from t1;


   123450
   0.1235

Given sufficiently extreme arithmetic,
float(N) can survive longer than number(p,s)

--

Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk

Thomas Kyte wrote in message ...

>No, I think I would want to use numbers with 38 digits of precision/scale.
The
>Oracle number type has more precision/scale then a float type does.
>
Received on Wed Sep 08 1999 - 09:08:55 CDT

Original text of this message

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