Re: [HACKERS] money data type and conversions]

Поиск
Список
Период
Сортировка
От D'Arcy" "J.M." Cain
Тема Re: [HACKERS] money data type and conversions]
Дата
Msg-id m10wu28-0000bFC@druid.net
обсуждение исходный текст
Ответ на Re: [HACKERS] money data type and conversions]  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список pgsql-hackers
Thus spake Bruce Momjian
> Maybe we will have to add '$' symbols to a special case of the numeric
> type, or add a function to output numeric in money format?

That's another thought I had.  However, it isn't the '$' symbol.  The
idea is that it takes the symbol from the current locale.  That's what
makes handling the information so hard, you don't know how many characters
are used by the currency symbol.

However, cash_out and cash_words_out can probably be dropped into the
decimal code.  There should be some small changes though.  In particular
the money type moves the decimal point to a position in a fixed string
of digits but for decimal it should honour the type's positioning.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] money data type and conversions]
Следующее
От: Kristofer Munn
Дата:
Сообщение: Perl 5 Interface on 6.5 and lo_creat/lo_open problem