sdcoffey / big

A simple wrapper for Golang's big.Float

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BIG

Big is a simple, immuatable wrapper around golang's built-in *big.Float type desinged to offer a more user-friendly API and immutability guarantees at the cost of some runtime performance.

Example

Usage is dead simple:

dec := big.NewDecimal(1.24)
addend := big.NewDecimal(3.14)

dec.Add(addend).String() // prints "4.38"

About

A simple wrapper for Golang's big.Float

License:MIT License


Languages

Language:Go 94.3%Language:Shell 3.5%Language:Makefile 2.2%