{"repo":"jokruger/dec128","free":true,"listed":false,"github":"https://github.com/jokruger/dec128","clone":"git clone https://github.com/jokruger/dec128.git","description":"High performance 128-bit fixed-point decimal numbers in go.","language":"Go","stars":50,"topics":["decimal","decimal-numbers","fixed-point","go","golang","finance","money","decimals","bignumber","precision"],"license":null,"category":"trading","readme_excerpt":"dec128 High performance 128-bit fixed-point decimal numbers in go. Key Objectives / Features - [x] High performance - [x] Zero dependencies - [x] Minimal or zero memory allocation - [x] Scale up to 19 decimal places - [x] Fixed size memory layout (128 bits) - [x] No panic or error arithmetics (use NaN instead) - [x] Immutability (methods return new instances) - [x] Basic arithmetic operations required for financial calculations (specifically for banking and accounting) - [ ] Additional arithmetic operations for scientific calculations - [x] Easy to use - [x] Easy to integrate with external systems (e.g. databases, accounting systems, JSON, etc.) - [x] Financially correct rounding - [x] Correct comparison of numbers encoded in different scales (e.g. 1.0 == 1.00) - [x] Correct handling of NaN values (e.g. NaN + 1 = NaN) - [x] Conversion to canonical representation (e.g. 1.0000 - 1) - [x] Conversion to fixed string representation (e.g. 1.0000 - \"1.0000\") - [x] Conversion to human-readable string representation (e.g. 1.0000 - \"1\") Install Run go get github.com/jokruger/dec128 Requirements This library requires Go version =1.23 Documentation http://godoc.org/github.com/jokruger/dec128 Usage Why not use other libraries? There are several other libraries that provide decimal arithmetic in Go. However, most of them are either too slow, too memory-intensive, or lack the integration features required for financial applications. This library aims to provide a high-performance, low-memor","default_branch":null,"files":null,"tree":[],"storefront":"/r/jokruger","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jokruger/dec128/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}