I have two numbers: balance1 = 0.253164557e-4 (which would give 0.0000253164557) balance2 = 0.00002531
now when I compare then in ruby like:
balance1 == balance2
, it gives false due to precision issue
but my requirement consider them to be equal, suggest ways to do this