sum("CEIL(`activities`.quantity/60) * 60 / 3600 * `activities`.price").to_s
"58.81"
sum("CEIL(`activities`.quantity/60) * 60 / 3600 * `activities`.price * 1").to_s
"58.806" # this is the correct one
I have checked the raw sql and both return 58.806.
I believe this is a bug for the sum method.