Name
Fixnum — Fixed-length number class
Synopsis
Fixnum
objects are fixed-length numbers with a
bit length of either 31 bits or 63 bits. If an operation exceeds this
range, it’s automatically converted to a
Bignum
.
Inherited Class
Integer
Get Ruby in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.