Implementing rounding rule in plpgsql

Поиск
Список
Период
Сортировка
От jeff sacksteder
Тема Implementing rounding rule in plpgsql
Дата
Msg-id 51c8a7be0511192301q53750c1aj64cae6b10a532ace@mail.gmail.com
обсуждение исходный текст
Ответы Re: Implementing rounding rule in plpgsql  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
Due to application requirements, I need to implement a rounding function that is independant of the baked-in rounding functionality. I'd prefer to do it in plpgsql for maximum portability.
To do this, I'll need to sequentially walk through the digits of an arbritarily long floating-point number. I can't think of a good way to do this.

I would greatly appreciate pointers to similar example code or discussion of the method for doing this..

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

Предыдущее
От: Ben Martin
Дата:
Сообщение: Custom GIST getting ERROR: too many LWLocks taken
Следующее
От: Leif Jensen
Дата:
Сообщение: Mambo (CMS) & PostgreSQL