Re: [HACKERS] NAN code

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] NAN code
Дата
Msg-id 199901041559.KAA11505@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] NAN code  (jwieck@debis.com (Jan Wieck))
Ответы Re: [HACKERS] NAN code  (jwieck@debis.com (Jan Wieck))
Список pgsql-hackers
>     num is  of  type  Numeric,  which  is  a  pointer  to  struct
>     NumericData!   So  the  above  should result in some compiler
>     warning (in fact it type casts a pointer into a double  value
>     - and that will give unpredictable results).
> 
>     Seems  that only isnan() is defined as part of Posix. But not
>     a definition that can force a NAN.  So  we  have  to  find  a
>     portable  way  to  define the value NaN for double and float.
>     Does anybody know of such a way?

See my later postings.  0.0/0.0 seems to do it.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: Date/time fixes for HAVE_TM_ZONE platforms
Следующее
От: "Vazsonyi Peter[ke]"
Дата:
Сообщение: Q: CURSOR tuples count