• Stars
    star
    529
  • Rank 83,810 (Top 2 %)
  • Language
    Go
  • License
    BSD 3-Clause "New...
  • Created almost 9 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A high-performance, arbitrary-precision, floating-point decimal library.

decimal Build Status GoDoc

decimal implements arbitrary precision, decimal floating-point numbers, per the General Decimal Arithmetic specification.

Features

  • Useful zero values. The zero value of a decimal.Big is 0, just like math/big.

  • Multiple operating modes. Different operating modes allow you to tailor the package's behavior to your needs. The GDA mode strictly implements the GDA specification, while the Go mode implements familiar Go idioms.

  • High performance. decimal is consistently one of the fastest arbitrary-precision decimal floating-point libraries, regardless of language.

  • An extensive math library. The math/ subpackage implements elementary and trigonometric functions, continued fractions, and more.

  • A familiar, idiomatic API. decimal's API follows math/big's API, so there isn't a steep learning curve.

Installation

go get github.com/ericlagergren/decimal

Documentation

GoDoc

Versioning

decimal uses Semantic Versioning. The current version is 3.3.1.

decimal only explicitly supports the two most recent major Go 1.X versions.

License

BSD 3-clause

More Repositories

1

go-coreutils

A cross-platform port of GNU's coreutils to Go
Go
751
star
2

go-gnulib

A collection of parts of GNU's libc, POSX libs, and Windows functions ported to Go
Go
74
star
3

patch

A simple exercise in hot-patching Go.
Go
29
star
4

go-llvm-mca

Run Go executables under llvm-mca
Go
13
star
5

lwcrypto

NIST Lightweight Cryptography finalists
Go
10
star
6

cidr-javascript

A fully functioning subnetting calculator
JavaScript
10
star
7

aegis

Implementation of https://www.ietf.org/archive/id/draft-denis-aegis-aead-00.html / https://competitions.cr.yp.to/round3/aegisv11.pdf
Assembly
8
star
8

polyval

POLYVAL per RFC 8452
Go
8
star
9

fixed

Go
8
star
10

node-ipcalc

node-js implementation of *nix's ipcalc
JavaScript
8
star
11

siv

AES-GCM-SIV per RFC 8452
Go
6
star
12

bloom-c

Bloom filter in C
C
5
star
13

pi-stats

Record statistics from a Raspberry Pi's VideoCore processor
C++
5
star
14

bloom

Bloom filter in Go
Go
5
star
15

rocca

Rocca: An Efficient AES-based Encryption Scheme for Beyond 5G - https://eprint.iacr.org/2022/116.pdf
C
4
star
16

pnwconference

Source code for pwnconference.gop
Go
4
star
17

proc

Some routines for processing procfs files.
Go
4
star
18

hctr2

Length-preserving encryption algorithm https://eprint.iacr.org/2021/1441.pdf
Assembly
3
star
19

dr

Double Ratchet Algorithm
Go
2
star
20

compressedhandler

Go middleware to compress HTTP responses.
Go
2
star
21

go-kml

A KML library adhering to KML Version 2.2
Go
2
star
22

ipcalc

python implementation of *nix's ipcalc
Python
2
star
23

hash_table

relatively simple C hash table
C
1
star
24

WA-VRDB-scraping

Scrapes Washington' VRDB
Python
1
star
25

monkslookingatbeer

a stupid script I wrote to tweet pictures of monks looking at beer
Go
1
star
26

sysinfo

CPU detection
Go
1
star
27

rsa

RSA Accumulator
Go
1
star
28

multi-test

Test your Go applications in different Docker containers.
Go
1
star
29

big

Rust Big Decimal library.
Rust
1
star
30

polyval-rs

1
star
31

hctr2-rs

Length-preserving encryption algorithm https://eprint.iacr.org/2021/1441.pdf
Rust
1
star
32

syslogd

a syslog daemon
Go
1
star
33

sha256

Experiments with SHA-256
C
1
star
34

subtle

Go
1
star
35

forro

Rust
1
star
36

saferand

A cryptographically secure implementation of math/rand or exp/rand - WIP
Go
1
star
37

mango-doc

Automatically exported from code.google.com/p/mango-doc
Go
1
star
38

ocb3

OCB3 - Offset Codebook Mode
Go
1
star
39

dndk-gcm

Double Nonce Derive Key AES-GCM (DNDK-GCM)
1
star
40

forkevent

/proc/sys/kernel/random/fork_event
Go
1
star
41

go-prng

Various PRNG generators translated to Go
Go
1
star