Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4612

Ruby: Differences in object identity of Integers

$
0
0

Why is 1.equal? 1 == true but (2**100).equal? (2**100) == false?

And has this to be considered as a bug?


Viewing all articles
Browse latest Browse all 4612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>