Skip to content
forked from Osinko/BigFloat

An arbitrary precision decimal (or float) library for C# built upon C#'s own arbitrary precision integer class

License

Notifications You must be signed in to change notification settings

Fry2412/BigFloat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigFloat

Purpose

This project was essentially just to implement an arbitrary precision floating point library using C#.

Installation

Copy BigFloat.cs into your project

Usage

Similiar to that of using BigInteger in C#.

BigFloat bigfloat = new BigFloat(1234);

//operator overloaded usage:
bigfloat *= 12;
//non-static method usage:
bigfloat.Multiply(12);
//static method usage:
BigFloat.Multiply(bigfloat, 12);

//implicit casts
bigfloat = 34;

//parsing
bigfloat = BigFloat.Parse("98782");
//or
bigfloat = new BigFloat("98782");

Examples

See Example.cs for an example

About

An arbitrary precision decimal (or float) library for C# built upon C#'s own arbitrary precision integer class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%