マシンのポインタのサイズに収まる長さの固定長整数.ほとんどの
マシンでは31ビット幅です.演算の結果がFixnum
の
範囲を越えた時には自動的に
Bignum
に拡張されます.
Integer
self + other
self - other
self * other
self / other
self % other
self ** other
算術演算子
~ self
self | other
self & other
self ^ other
self << bits
self >> bits
ビット演算子
id2name
(シンボルの)整数に対応する文字列を返します.もし整数に対応す
るシンボルが存在しない時にはnil
を返します.