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