I wrote this in rails console
(3352.3744333333334==3352.3744333333335) #true
and result was true
Notes:
I'm using ruby 2.4.0 and rails 5.0.1
I wrote this in rails console
(3352.3744333333334==3352.3744333333335) #true
and result was true
Notes:
I'm using ruby 2.4.0 and rails 5.0.1
I’m not an expert in ruby but my best answer is that the code is printing out all of the numbers but only comparing like the first 10 digits meaning 3352.374433 to 3352.374433 and it’s not going further than that. This would be the most logical explanation In my mind