"money" binary representation

Поиск
Список
Период
Сортировка
От Konstantin Izmailov
Тема "money" binary representation
Дата
Msg-id 72746b5e0911152007y57c7d80aq6ac442232fa37086@mail.gmail.com
обсуждение исходный текст
Ответы Re: "money" binary representation  (John R Pierce <pierce@hogranch.com>)
Re: "money" binary representation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I'm trying to read "money" field using PQgetvalue (PostgreSQL 8.3.7). The function returns 9 bytes, smth like 0h 0h 0h 0h 0h 0h 14h 0h 0h, for the value '$50.2'. I could not find description anywhere on how to convert the binary data into, for example, a double precision number.
 
Would you please help me find a method of converting binary "money" data into a double precision?
 
Thank you!

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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Voting: "pg_ctl init" versus "initdb"
Следующее
От: John R Pierce
Дата:
Сообщение: Re: "money" binary representation