An open API service indexing awesome lists of open source software.

https://github.com/lovung/decimal

Mathematic library for the Decimal number - Support recurring decimal
https://github.com/lovung/decimal

bigdecimal decimal denominator go golang library numerator package scale

Last synced: 3 months ago
JSON representation

Mathematic library for the Decimal number - Support recurring decimal

Awesome Lists containing this project

README

          

# Decimal library

![Go](https://github.com/lovung/decimal/workflows/Go/badge.svg)
![Goreport](https://goreportcard.com/badge/github.com/lovung/decimal)
[![GoDoc](https://godoc.org/github.com/lovung/decimal?status.svg)](https://godoc.org/github.com/lovung/decimal)
[![codecov](https://codecov.io/gh/lovung/decimal/branch/main/graph/badge.svg?token=gahFHCRGYn)](https://codecov.io/gh/lovung/decimal)

# Document

- https://pkg.go.dev/github.com/lovung/decimal
- https://godoc.org/github.com/lovung/decimal

# TODO

## Basic operators
- [x] Add
- [x] Sub
- [x] Mul
- [x] Div
- [x] Abs
- [x] Neg

## Comparing & Signing
- [x] Cmp
- [x] Sign
- [x] Equal

## Advance operators
- [ ] Pow
- [ ] Shift
- [ ] Sin
- [ ] Asin
- [ ] Cos
- [ ] Acos
- [ ] Tan
- [ ] Atan
- [ ] Cotan
- [ ] Acotan

## Convert
- [ ] String
- [ ] Float64

## Parser (Marshal/Unmarshal)
- [ ] Text
- [ ] JSON
- [ ] XML

## SQL
- [ ] Value
- [ ] Scan

## Utilities
- [ ] Sum
- [ ] Avg
- [ ] Min
- [ ] Max

## Rounding
- [ ] Round
- [ ] RoundUp
- [ ] RoundDown