News for hackers. Stuff that matters.
Re:PostgreSQL Exercises by knightni on Thursday December 12, 2013 @10:41AM (#6894986)
You're running into the fact that Postgres doesn't automatically cast ints to floats - so 1/50 = 0. Try using 1.0/50.0 instead.
Re:PostgreSQL Exercises by SDGT on Thursday December 12, 2013 @11:22AM (#6895239)
Or get dirty and cast it.

::floatval