Daniel Berger wrote: > if (2**33).kind_of?(Bignum) > # 32 bit > else > # 64 bit > end Excellent idea. However, note that it takes 34 bits to represent 2**33, and 33 bits to represent 2**32. Thus, we can get away with only checking whether 2**32 is a Fixnum: is_machine_64_bit = (2 ** 32).is_a? Fixnum -- Posted via http://www.ruby-forum.com/.