From: Simen Edvardsen Date: 2006-06-10T20:36:34+09:00 Subject: Re: limiting Ruby Numbers What exactly are you trying to do? From the Fixnum documentation: "A Fixnum holds Integer values that can be represented in a native machine word (minus 1 bit). If any operation on a Fixnum exceeds this range, the value is automatically converted to a Bignum. Fixnum objects have immediate value. This means that when they are assigned or passed as parameters, the actual object is passed, rather than a reference to that object. Assignment does not alias Fixnum objects. There is effectively only one Fixnum object instance for any given integer value, so, for example, you cannot add a singleton method to a Fixnum." Is that the answer you are looking for? On 6/10/06, Guest wrote: > is there any ways to limit ruby numbers up to certain bytes? all i've > read is that ruby numbers are limited to host's free memory > > -- > Posted via http://www.ruby-forum.com/. > > -- - Simen