Changed setAmount to typecast as float rather than integer, due to loss of data.