Re: (Bug) Numeric fault calculation - Mailing list pgadmin-support

From Chirag Mittal
Subject Re: (Bug) Numeric fault calculation
Date
Msg-id 1371383959180-5759375.post@n5.nabble.com
Whole thread Raw
In response to (Bug) Numeric fault calculation  ("Kanitchet Vaiassava" <kanichet@hotmail.com>)
Responses Re: (Bug) Numeric fault calculation
List pgadmin-support
Dear Kanitchet,

Please try this 

SELECT (260739.94 * (1.00/365.00))::numeric(20,7)

I am a beginner but I think we need to explicitly mention the "output"
format required to get accuracy.

Hope it helped.



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/Bug-Numeric-fault-calculation-tp5752984p5759375.html
Sent from the PostgreSQL - pgadmin support mailing list archive at Nabble.com.



pgadmin-support by date:

Previous
From: "David Rowley"
Date:
Subject: Bug in foreign key constraint SQL
Next
From: "carlosinfl ."
Date:
Subject: Server Instrumentation