Constants providing the numerical limitations of Fixnum class.
Synopsis
require 'mega/fixnum-constants' puts Fixnum::MAX #=>
Constants
| N_BYTES | = | [42].pack('i').size |
| N_BITS | = | N_BYTES * 8 |
| MAX | = | 2 ** (N_BITS - 2) - 1 |
| MIN | = | -MAX - 1 |
| Class Fixnum |
|
Constants providing the numerical limitations of Fixnum class.
require 'mega/fixnum-constants' puts Fixnum::MAX #=>
| N_BYTES | = | [42].pack('i').size |
| N_BITS | = | N_BYTES * 8 |
| MAX | = | 2 ** (N_BITS - 2) - 1 |
| MIN | = | -MAX - 1 |