I am receiving a param a value with rate['row_total'] = 65.60 from request. Then in controller i get
rate['row_total'] = 65.60
puts "rate = #{rate['row_total']}" = 65.5999999999999
I tried BigDecimal(rate['row_total']).to_s('F') did not work
BigDecimal(rate['row_total']).to_s('F')
Aucun commentaire:
Enregistrer un commentaire