--8323328-1747698051-1122498746734
Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1747698051-1122498746=:4734"

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323328-1747698051-1122498746734
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Thu, 28 Jul 2005, Nikolai Weibull wrote:

> This may be silly, considering that Fixnums are converted to Bignums if
> necessary, but is there no room for having MIN and MAX constants for
> Fixnums?  This is my C talking, but it kind of nice to have these
> kinds of limits for certain algorithms and efaultvalues.  Any
> input?,
>        nikolai

awesome!  i have this everywhere:

   class Fixnum
     N_BYTES = [42].pack('i').size
     N_BITS = N_BYTES * 8
     MAX = 2 ** (N_BITS - 2) - 1
     MIN = -MAX - 1
   end

cheers.

-a
-- 
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| My religion is very simple.  My religion is kindness.
| --Tenzin Gyatso
===============================================================================

--8323328-1747698051-1122498746734--
--8323328-1747698051-1122498746734--