Ruby Programming Language Question: Download Ruby PDF

How does ruby deal with extremely large numbers?

Tweet Share WhatsApp

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 PDF Read All 26 Ruby Questions
Previous QuestionNext Question
Explain about Float, Dig and Max?Explain about Class variable and global variable?