using rails model associate, rather than assign id.
rounding float numbers.