SOLVED: Dividing Money

Поиск
Список
Период
Сортировка
От Bob Dusek
Тема SOLVED: Dividing Money
Дата
Msg-id Pine.LNX.3.96.981202141556.17606B-100000@farout.palaver.net
обсуждение исходный текст
Ответы Re: [GENERAL] SOLVED: Dividing Money  (Gregory Maxwell <greg@z.ml.org>)
Список pgsql-general
Well,

I've still not come up with a way of directly dividing money types, but
here's what I came up with:

select price, price * (1::float / 2::float) as halfofprice from
item_money;

It seems kind of kludgey, but.... my mind can do no better, at this point.

Thanks for all the help on this one.

'til next time,

Bob


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

Предыдущее
От: Nicholas Humfrey
Дата:
Сообщение: Text Databases
Следующее
От: Bob Dusek
Дата:
Сообщение: Another Solution: Dividing Money