# 64-bit integer

**URL:** <https://www.ruby-forum.com/t/64-bit-integer/194882>\
**Category:** Ruby\
**Created:** [September 13, 2010, 2:56am UTC](https://www.ruby-forum.com/t/64-bit-integer/194882 "2010-09-13T02:56:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rawroe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/94ad74/32.png) [@rawroe](https://www.ruby-forum.com/u/rawroe)\
**Post date:** [September 13, 2010, 2:56am UTC](https://www.ruby-forum.com/t/64-bit-integer/194882/1 "2010-09-13T02:56:42Z")

</div>

Hi,  
I’m doing a lot of bitwise operations and I need numbers that are truly  
64  
bits. My problem is that I can’t seem to contain them as such. If I  
shift  
off the left or right side, I want the bits to just fall off and  
disappear.  
And of course I’d rather not have to constantly be doing “self  
& 0xffffffffffffffff”. Any suggestions?
