BigFloat is an extension library for Ruby. Using BigFloat class, you can obtain any number of significant digits in computation.