BigDecimal(Variable Precision Floating Library for Ruby)

Japanese

BigDecimal is an extension library for the Ruby interpreter. Using BigDecimal class, you can obtain any number of significant digits in computation. For the details about Ruby see:
NOTE:
This software is provided "AS IS" and without any express or implied warranties,including,without limitation,the implied warranties of merchantibility and fitness for a particular purpose. For the details,see COPYING and README included in this distribution.

Contents


Introduction

Ruby already has builtin (variable length integer number) class Bignum. Using Bignum class,you can obtain any integer value in magnitude. But, variable length decimal number class is not yet built in. This is why I made variable length floating class BigDecimal. Feel free to send any comments or bug reports to me.
shigeo@tinyforest.gr.jp I will try(but can't promise) to fix bugs reported.

Installation

The Ruby latest version can be downloaded from Official Ruby page. Once decompress the downloaded Ruby archive,follow the normal installation procedures according to the documents included.

Usage and methods

Suppose you already know Ruby programming, to create BigDecimal objects,the program would like:
   require 'bigdecimal'
   a=BigDecimal::new("0.123456789123456789")
   b=BigDecimal("123456.78912345678",40)
   c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789") b=BigDecimal("123456.78912345678",40) c=a+b

List of methods

In 32 bits integer system89123456789")