RealBigNum.Asielen v113

This page is about the Asielen.RealBigNum library. It explains what the library does and how it works.

Introduction

This library provides the ability to use any arbitrary length real numbers in your programs. It provides the ability to do the four basic operations: addition, subtraction, multiplication, and division as well as rounding and number comparisons.


Quick Start

Basic Functions:

To get started using bignums, I have provided some easy to use procs in the RealBigNum.dm file.
For each of these procs:


Example:

Here are some examples of how to so some simple math and print the result:

Reference

Gloabal Variables:

Gloabal Functions:

bignum definition:

This library creates and makes use of the bignum datum. This datum definition consists of:

Creating bignums:

Bignums are created through use of the new() proc. They can be created from: strings, nums, other bignums, or lists

Basic Functions:

These functions simply return data on a bignum datum.

Output Functions:

These functions convert the bignum for output

Basic Math:

The four main functions are defined in this library. They are all defined under the bignum datum. None of the functions modify the input bignums; they all return a third new bignum with the result. They all also have a second argument (FLOAT) which is the number of digits to keep. Its default is the world definition of precision (MAXFLOAT)

Secondary Functions:

There are two main secondary functions for bignum:

Composite Functions:

These are functions that use other primary or secondary functions to perform a more complex function.

Internal Functions:

These are some internal functions that while not directly useful if you just want to do basic math, are useful if you want to define your own functions that modify bignums.

Constants:

A few numbers are pre-defined within the bignum library. They are defined under, bignum/CONST