From: Daniel Berger Date: 2007-07-29T04:50:01+09:00 Subject: Re: checking if machine is 64-bit On Jul 28, 11:42 am, Suraj Kurapati wrote: > Hello, > > I am checking if the machine is 64-bit by doing this: > > require 'rbconfig' > is_machine_64_bit = ( Config::CONFIG["arch"] =~ /64/ ) > > Is there a better way? if (2**33).kind_of?(Bignum) # 32 bit else # 64 bit end Might need some tweaking once the 128 bit operating systems show up... Regards, Dan