From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Jan Wieck <wieck(at)debis(dot)com> |
Cc: | zot(at)zotconsulting(dot)com, pgsql-sql(at)postgreSQL(dot)org, jwieck(at)debis(dot)com |
Subject: | Re: [SQL] Decimal precsion? |
Date: | 1999-10-31 13:18:31 |
Message-ID: | 199910311318.IAA29940@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> > However, the original message had DECIMAL(4,4) and he could insert 0.1,
> > but not 0.0.
>
> The rounding is of course correct. Rounding 0.1234567 first
> to 0.123457 and then cutting of to 0.1234 is finally cutting,
> not rounding, and totally braindead. You only have to look at
> the digit after the last significant one. In this case we
> have 4 significant digits, so we must look at digit 5,
> nothing else. Thus 0.1234500 is 0.1235 while 0.1234499 is
> 0.1234 - end of story.
>
> The other one, not beeing able to insert 0.0, is surely a
> bug. Would you please put it onto the TODO?
Done:
* insert of 0.0 into DECIMAL(4,4) field fails
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tulassay Zsolt | 1999-10-31 15:45:26 | auto datetime update on UPDATE? |
Previous Message | Mario Simeone | 1999-10-31 09:51:26 | subscribe |