Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling
В списке pgsql-patches по дате отправления:
| От | Roman Kononov |
|---|---|
| Тема | Re: [PATCHES] [BUGS] BUG #2846: inconsistent and confusing handling |
| Дата | |
| Msg-id | 4592D71E.8070401@yahoo.com обсуждение исходный текст |
| Ответ на | Re: [BUGS] BUG #2846: inconsistent and confusing handling of (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-patches |
On 12/27/2006 01:15 PM, Tom Lane wrote: > I'm not convinced that you're fixing things so much as doing your best > to destroy IEEE-compliant float arithmetic behavior. > > I think what we should probably consider is removing CheckFloat4Val > and CheckFloat8Val altogether, and just letting the float arithmetic > have its head. Most modern hardware gets float arithmetic right per > spec, and we shouldn't be second-guessing it. I vote for complete IEEE-compliance. No exceptions with pure floating point math. Float -> int conversions should reject overflow, INF and NaN. Float -> numeric conversions should reject INF. > A slightly less radical proposal is to reject only the case where > isinf(result) and neither input isinf(); and perhaps likewise with > respect to NaNs. This might look like another possibility for confusion. For example INF-INF=NaN. Regards, Roman.
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера