decimal - Arbitrary-precision fixed-point decimal numbers in go

  •        32

Arbitrary-precision fixed-point decimal numbers in go.NOTE: can "only" represent numbers with a maximum of 2^31 digits after the decimal point.

https://github.com/shopspring/decimal

Tags
Implementation
License
Platform

   




Related Projects

accounting - money and currency formatting for golang


FormatMoney is a function for formatting numbers as money values, with customisable currency symbol, precision (decimal places), and thousand/decimal separators.FormatMoney supports various types of value by runtime reflection. If you don't need runtime type evaluation, please refer to FormatMoneyInt, FormatMoneyBigRat, FormatMoneyBigRat, or FormatMoneyFloat64.

go-finance - Flexible, simple financial markets data in Go.


go-finance is a Go library for retrieving financial data for quantitative analysis.If you find this repo helpful, please give it a star! If you wish to discuss changes to it, please open an issue. This project is not as mature as it could be, and financial projects in Go are in drastic need of some basic helpful dependencies.

bignumber.js - A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic


A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic. If a smaller and simpler library is required see big.js. It's less than half the size but only works with decimal numbers and only has half the methods. It also does not allow NaN or Infinity, or have the configuration options of this library.

decimal.js - An arbitrary-precision Decimal type for JavaScript


An arbitrary-precision Decimal type for JavaScript. The library is similar to bignumber.js, but here precision is specified in terms of significant digits rather than decimal places, and all calculations are rounded to the precision (similar to Python's decimal module) rather than just those involving division.

big.js - A small, fast JavaScript library for arbitrary-precision decimal arithmetic.


A small, fast JavaScript library for arbitrary-precision decimal arithmetic. The little sister to bignumber.js and decimal.js. See here for some notes on the difference between them.


Accounting.js - A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.


accounting.js is a tiny JavaScript library for number, money and currency parsing/formatting. It's lightweight, fully localisable, has no dependencies, and works great client-side or server-side. Use standalone or as a nodeJS/npm and AMD/requireJS module.

Skrooge - A personal finances manager, powered by KDE


Skrooge allows you to manage your personal finances, powered by KDE 4.x. Thanks to its many features, it is one of the most powerful way to enter, follow, and analyze your expenses. It can import data from other finance manager like Microsoft Money, GnuCash etc, Graphical Reports, Schedule operations, Track refund of your expenses, Dashboard support and lot more.

0.30000000000000004 - Floating Point Math Examples


Your language isn't broken, it's doing floating point math. Computers can only natively store integers, so they need some way of representing decimal numbers. This representation comes with some degree of inaccuracy. That's why, more often than not, .1 + .2 != .3. Why does this happen? It's actually pretty simple. When you have a base 10 system (like ours), it can only express fractions that use a prime factor of the base. The prime factors of 10 are 2 and 5. So 1/2, 1/4, 1/5, 1/8, and 1/10 can all be expressed cleanly because the denominators all use prime factors of 10. In contrast, 1/3, 1/6, and 1/7 are all repeating decimals because their denominators use a prime factor of 3 or 7. In binary (or base 2), the only prime factor is 2. So you can only express fractions cleanly which only contain 2 as a prime factor. In binary, 1/2, 1/4, 1/8 would all be expressed cleanly as decimals. While, 1/5 or 1/10 would be repeating decimals. So 0.1 and 0.2 (1/10 and 1/5) while clean decimals in a base 10 system, are repeating decimals in the base 2 system the computer is operating in. When you do math on these repeating decimals, you end up with leftovers which carry over when you convert the computer's base 2 (binary) number into a more human readable base 10 number.

JavaMoney - Money and Currency API for Java


JavaMoney is the new monetary API for the Java Platform as well as related projects and libraries. Whereas the API (JSR 354) provides a portable and extensible API for handling of Money & Currency models, Moneta provides a production ready reference implementation.

Decimal Precision Extensions


Extension for Decimal data type helps to set a specific precision for decimal number also setting number of decimal places and adding insignificant zeroes

HomeBank - Free, easy, personal accounting for everyone


HomeBank is free software that will assist you to manage your personal accounting. It is designed to easy to use and be able to analyse your personal finance in detail using powerful filtering tools and graphs.

Gnucash - Accounting Software


GnuCash allows you to track bank accounts, stocks, income and expenses. As quick and intuitive to use as a checkbook register, it is based on professional accounting principles to ensure balanced books and accurate reports. It supports Double entry accounting, Stock/Bond/Mutual Fund Accounts, Small-Business Accounting.

Imperium - Billing and Accounting Software


Imperium is a web-based billing and accounting software solution for small and medium sized businesses. It provides basic CRM, Job Tracking, Invoicing, Double-Entry Book-keeping and Accounting features. Easily organize clients and contacts, provide quotes, track work and send bills.

Geolib - Growing library to provide some basic geo functions


Library to provide basic geospatial operations like distance calculation, conversion of decimal coordinates to sexagesimal and vice versa, etc. Takes 2 or 4 arguments. First 2 arguments must be objects that each have latitude and longitude properties (e.g. {latitude: 52.518611, longitude: 13.408056}). Coordinates can be in sexagesimal or decimal format. 3rd argument is accuracy (in meters). So a calculated distance of 1248 meters with an accuracy of 100 is returned as 1200 (accuracy 10 = 1250 etc.). 4th argument is precision in sub-meters (1 is meter presicion, 2 is decimeters, 3 is centimeters, etc).

Money Class for C#. Fast, light and flexible


This Money class gives you the ability to work with money of multiple currencies as if it were built-in types. It looks and behaves like a decimal with extra features, but can perform much faster.

Turbocash - Accounting Software in Delphi


Turbocash is award winning open source accounting software. It provides easy and simple interface to manage the accounts and helps to calculate tax. It supports more than 81 languages.Tax and account terminology is localized to most of the countries. It maintains Accounts, Stocks, Documents, Calendar and provide functionality to create, edit and search on them. Report manager helps to build customized reports.

kMyMoney - Personal Finance Manager


KMyMoney is the Personal Finance Manager for KDE. It operates similar to Quicken, supports various account types, categorization of expenses, multiple currencies, online banking support via QIF, OFX and HBCI, budgeting and a rich set of reports.

go-money - Go implementation of Fowler's Money pattern


GoMoney provides ability to work with monetary value using a currency's smallest unit. Package allows you to use basic Money operations like rounding, splitting or allocating without losing a penny. You shouldn't use float for monetary values, since they always carry small rounding differences.

jGnash - Personal Finance Management in Java


jGnash was created in order to make tracking your personal finances easy. It features include Double-Entry Based Transactions, Account Reconciliation, Multiple Currencies support, Report generation and lot more. It also supports Client / Server architecture where multiple clients could communicate with single server.

BigDecimal.js - Arbitrary-precision decimals library for JavaScript


This is a copy of version 1.0.1 of the STZ-IDA JavaScript translation of the com.ibm.icu.math.BigDecimal and com.ibm.icu.math.MathContext Java classes from the ICU4J project. This version includes a small bug fix in the implementation of the pow() function. See this answer on Stack Overflow for more information (note that you will need 10K+ reputation on Stack Overflow in order to view the answer because the question was deleted by a moderator).