Ruby Programming Language Question:

Download Job Interview Questions and Answers PDF

How does ruby deal with extremely large numbers?

Ruby Interview Question
Ruby Interview Question

Answer:

Unlike other programming languages ruby deals with extremely large numbers it doesn’t have any barriers. There is no limit on the extent of limit of number usage. Ruby performs this function with two different classes they are fixnum and bignum. Fixnum represents easily managed small numbers and bignum represents big numbers. Ruby entirely handles the functioning of these two classes which leaves a programmer to concentrate on his arithmetic operations.

Download Ruby Interview Questions And Answers PDF

Previous QuestionNext Question
Explain about Float, Dig and Max?Explain about Class variable and global variable?