Having a Javascript Moment With Ruby, WTF Is Going on Here...

WTF is going on here?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(rdb:1) sum
244.4
(rdb:1) amount
244.4
(rdb:1) sum != amount
true
(rdb:1) sum.to_f
244.4
(rdb:1) amount.to_f
244.4
(rdb:1) sum.to_f != amount.to_f
true
(rdb:1) sum == amount
false
(rdb:1) sum.to_f == amount.to_f
false
(rdb:1)

First guess is some type conversion problem...

Still investigating.

Comments