Sha256: ca1c7436b53ae5d1efafc8f6e0fcf59682e29ae82e8c95c15151c875a15904d9

Contents?: true

Size: 707 Bytes

Versions: 2

Compression:

Stored size: 707 Bytes

Contents

Fixnum objects hold Integer values. If any integer
exceeds the Fixnum maximum value on your machine,
it will be converted to a Bignum. Fixnum objects
have immediate value. This means that when they are
assigned or passed as parameters, the actual object
is passed, rather than a reference to that object.
Fixnum objects are also immutable, meaning that the
value assigned to that object id will not change no
matter what methods or operations executed. Methods
such as '+' or '-' return a new Fixnum and do not
affect the original value.

As a sidenote: any mathematical operations the involve
two Integers will return an Integer. Meaning that any
decimals that would normally be left over will be rounded.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubytutor-0.1.1 lib/descriptions/Fixnum.txt
rubytutor-0.1.0 lib/descriptions/Fixnum.txt