Re: Round Numeric Type

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: Round Numeric Type
Дата
Msg-id 20061031211824.GC20809@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Round Numeric Type  ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>)
Ответы Re: Round Numeric Type
Список pgsql-sql
On Tue, Oct 31, 2006 at 05:35:17PM -0200, Ezequias Rodrigues da Rocha wrote:
> Hi list,
> 
> I did a trigger to update a points on a table but in some cases the
> PostgreSQL does a round of my Numeric like.
> 
> If >= 0.5 so postgresql puts 1
> If < 0.5 so postgresql puts 0
> 
> Did anybody knows if it is possible to control this matter ?

Sounds like your datatype doesn't match your input, and that you've
got a type that rounds.  What's the datatype you're putting into?

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
Users never remark, "Wow, this software may be buggy and hard 
to use, but at least there is a lot of code underneath."    --Damien Katz


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

Предыдущее
От: "Aaron Bono"
Дата:
Сообщение: Re: Table Relationships
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: record datatype comparisons