Sha256: d8f2d63fbdd73544930980acde9f9c4114e0d30a7cf4b9ea10e61dbd3c92e290
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
#-- # Fixnum Constants # # Copyright (c) 2005 Thomas Sawyer # # Ruby License # # This module is free software. You may use, modify, and/or redistribute this # software under the same terms as Ruby. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. # # # ========================================================================== # Revision History :: # -------------------------------------------------------------------------- # 05.07.05 trans * Placed in Calibre # ========================================================================== #++ #:title: Fixnum Constants # # Constants providing the numerical limitations of Fixnum class. # # == Synopsis # # require 'mega/fixnum-constants' # # puts Fixnum::MAX #=> # class Fixnum N_BYTES = [42].pack('i').size N_BITS = N_BYTES * 8 MAX = 2 ** (N_BITS - 2) - 1 MIN = -MAX - 1 end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # TODO =begin testing require 'test/unit' class TC_FixnumConst < Test::Unit::TestCase def test_01 end end =end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | lib/mega/fixnum_const.rb |