I am using ruby 2.3.0p0.
I have been trying to do a simple addition using 2 float numbers in ruby
irb(main):001:0> 1.50 + 14.99
=> 16.490000000000002
The desired result should be 16.49
instead of 16.490000000000002
a = 1.5
b = 14.99
c = a + b
How could I fixed this so that I could get 16.49
for variable c
Cheers.