Re: BUG #6217: to_char() gives incorrect output for very small float values

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6217: to_char() gives incorrect output for very small float values
Дата
Msg-id 13033.1316548340@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6217: to_char() gives incorrect output for very small float values  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: BUG #6217: to_char() gives incorrect output for very small float values
Re: BUG #6217: to_char() gives incorrect output for very small float values
Список pgsql-bugs
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> If we're gonna fix it, we should just fix it, I think.  I was
>> considering taking a stab at it, but if someone else would like
>> to, that's fine too.

> I wouldn't mind doing it, but not until after the CF wraps.  On the
> other hand, isn't this is one of those compatibility functions?
> Perhaps it would best be done by someone who has familiarity with,
> and access to, a database with which we're trying to be compatible.

Chris already stated that the case gives the answer he expects in
several other DBs, so I don't seem much need for further compatibility
checking on the "don't round off prematurely" angle.  However, it would
be interesting to know what Oracle etc do with NaN and Infinity,
assuming they even support such numbers.

Currently what our code does for the format-with-EEEE case is to output
"#" in all digit positions.  It would be plausible for that to happen
in the non-EEEE cases too, but whether that's actually what happens in
other systems is something I don't know.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #6217: to_char() gives incorrect output for very small float values
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #6217: to_char() gives incorrect output for very small float values