標準クラス・モジュール > Fixnum
このページは書きかけの項目です。
Fixnumクラスのオブジェクトは整数を表します。
Fixnumで扱える整数の値には上限があります。演算によって値が上限を超えると、大きな整数を扱うBignumクラスのオブジェクトに自動的に変換されます。
Fixnumの親クラスはIntegerで、親の親はNumericです。ただし、FixnumではIntegerやNumericのメソッドの多くは実行効率のために上書きされています。
Fixnum < Integer (< Precision) < Numeric < Comparable < Object < Kernel (< BasicObject)
Ruby 1.9 PrecisionモジュールはRuby 1.9で廃止されています。
この一覧には、親クラスInteger、Numericのメソッドや、モジュールPrecision、Comparableのメソッドも混ぜてあります。
なお、三角関数などのメソッドはMathモジュールを参照してください。
induced_from : % : & : * : ** : + : +@ : - : -@ : / : <, <=, >, >= : << : <=> : == : === : Ruby 1.9>> : [] : ^ : | : ~ : abs : between? : ceil : chr : coerce : div : divmod : downto : eql? : even? : Ruby 1.8.7fdiv : Ruby 1.8.7floor : id2name : integer? : magnitude : Ruby 1.9modulo : next : nonzero? : odd? : Ruby 1.8.7ord : Ruby 1.8.7prec : prec_f : prec_i : pred : Ruby 1.8.7quo : real? : Ruby 1.9remainder : round : singleton_method_added : size : step : succ : Ruby 1.9times : to_f : to_i : to_int : to_s : to_sym : truncate : upto : zero? : abs2 : angle : arg : conj : conjugate : imag : imaginary : phase : polar : real : rect : rectangular : to_c :