NAN code

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема NAN code
Дата
Msg-id 199901010417.XAA25728@candle.pha.pa.us
обсуждение исходный текст
Ответы Re: [HACKERS] NAN code  (jwieck@debis.com (Jan Wieck))
Re: [HACKERS] NAN code  (orion.SAPserv.Hamburg.dsh.de!wieck@sapserv.debis.de)
Список pgsql-hackers
I have changed the NAN code, so if NAN is not defined, we just use 'num'
as NAN, since we only get here if num is NAN.  Seems like a good fix for
platforms that can't assign a NAN to a variable.

---------------------------------------------------------------------------
   if (NUMERIC_IS_NAN(num))   {       result = (float32)palloc(sizeof(float32data));
#ifdef NAN       *result = NAN;
#else       *result = num;
#endif       return result;   }

--  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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: NAN value
Следующее
От: Bruce Momjian
Дата:
Сообщение: NAN code