Update activerecord.php

typecast decimal as float, not int.