├── .github └── workflows │ └── codeql-analysis.yml ├── .gitignore ├── AUTHORS ├── LICENSE ├── README-fr.md ├── README.md ├── big.go ├── big_ctx.go ├── big_test.go ├── binary_spliting.go ├── const.go ├── context.go ├── context_test.go ├── continued_frac.go ├── decomposer.go ├── decomposer_test.go ├── dectest ├── case.go ├── op_string.go ├── ragel.bash ├── scanner.go ├── scanner.rl ├── skip.go └── test.go ├── dectest_test.go ├── doc.go ├── example_calculator_test.go ├── example_cfphi_test.go ├── example_cftan_test.go ├── example_decimal_test.go ├── format.go ├── format_string.go ├── format_test.go ├── fuzz └── SetString │ └── SetString.go ├── go.mod ├── go.sum ├── internal ├── arith │ ├── abs.go │ ├── arith.go │ ├── arith_test.go │ ├── intlen.go │ ├── intlen_test.go │ ├── pow.go │ └── pow_test.go └── c │ ├── const.go │ └── const_test.go ├── issues_test.go ├── math ├── debug │ └── print.go └── math.go ├── misc └── misc.go ├── misc_test.go ├── operatingmode_string.go ├── parity.md ├── payload_string.go ├── pytables_test.go ├── roundingmode_string.go ├── scan.go ├── scan_test.go ├── sql ├── postgres │ ├── decimal.go │ └── decimal_test.go └── sql.go ├── suite ├── op_string.go ├── parser.go └── suite.go ├── testdata ├── dectest │ └── generate.bash └── pytables │ ├── generate.bash │ └── tables.py ├── util.go ├── zdebug.go └── zdebug0.go /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/.gitignore -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/AUTHORS -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/LICENSE -------------------------------------------------------------------------------- /README-fr.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/README-fr.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/README.md -------------------------------------------------------------------------------- /big.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/big.go -------------------------------------------------------------------------------- /big_ctx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/big_ctx.go -------------------------------------------------------------------------------- /big_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/big_test.go -------------------------------------------------------------------------------- /binary_spliting.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/binary_spliting.go -------------------------------------------------------------------------------- /const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/const.go -------------------------------------------------------------------------------- /context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/context.go -------------------------------------------------------------------------------- /context_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/context_test.go -------------------------------------------------------------------------------- /continued_frac.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/continued_frac.go -------------------------------------------------------------------------------- /decomposer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/decomposer.go -------------------------------------------------------------------------------- /decomposer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/decomposer_test.go -------------------------------------------------------------------------------- /dectest/case.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest/case.go -------------------------------------------------------------------------------- /dectest/op_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest/op_string.go -------------------------------------------------------------------------------- /dectest/ragel.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest/ragel.bash -------------------------------------------------------------------------------- /dectest/scanner.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest/scanner.go -------------------------------------------------------------------------------- /dectest/scanner.rl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest/scanner.rl -------------------------------------------------------------------------------- /dectest/skip.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest/skip.go -------------------------------------------------------------------------------- /dectest/test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest/test.go -------------------------------------------------------------------------------- /dectest_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/dectest_test.go -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/doc.go -------------------------------------------------------------------------------- /example_calculator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/example_calculator_test.go -------------------------------------------------------------------------------- /example_cfphi_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/example_cfphi_test.go -------------------------------------------------------------------------------- /example_cftan_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/example_cftan_test.go -------------------------------------------------------------------------------- /example_decimal_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/example_decimal_test.go -------------------------------------------------------------------------------- /format.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/format.go -------------------------------------------------------------------------------- /format_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/format_string.go -------------------------------------------------------------------------------- /format_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/format_test.go -------------------------------------------------------------------------------- /fuzz/SetString/SetString.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/fuzz/SetString/SetString.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/ericlagergren/decimal 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /internal/arith/abs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/arith/abs.go -------------------------------------------------------------------------------- /internal/arith/arith.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/arith/arith.go -------------------------------------------------------------------------------- /internal/arith/arith_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/arith/arith_test.go -------------------------------------------------------------------------------- /internal/arith/intlen.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/arith/intlen.go -------------------------------------------------------------------------------- /internal/arith/intlen_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/arith/intlen_test.go -------------------------------------------------------------------------------- /internal/arith/pow.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/arith/pow.go -------------------------------------------------------------------------------- /internal/arith/pow_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/arith/pow_test.go -------------------------------------------------------------------------------- /internal/c/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/c/const.go -------------------------------------------------------------------------------- /internal/c/const_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/internal/c/const_test.go -------------------------------------------------------------------------------- /issues_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/issues_test.go -------------------------------------------------------------------------------- /math/debug/print.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/math/debug/print.go -------------------------------------------------------------------------------- /math/math.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/math/math.go -------------------------------------------------------------------------------- /misc/misc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/misc/misc.go -------------------------------------------------------------------------------- /misc_test.go: -------------------------------------------------------------------------------- 1 | package decimal_test 2 | -------------------------------------------------------------------------------- /operatingmode_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/operatingmode_string.go -------------------------------------------------------------------------------- /parity.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/parity.md -------------------------------------------------------------------------------- /payload_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/payload_string.go -------------------------------------------------------------------------------- /pytables_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/pytables_test.go -------------------------------------------------------------------------------- /roundingmode_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/roundingmode_string.go -------------------------------------------------------------------------------- /scan.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/scan.go -------------------------------------------------------------------------------- /scan_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/scan_test.go -------------------------------------------------------------------------------- /sql/postgres/decimal.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/sql/postgres/decimal.go -------------------------------------------------------------------------------- /sql/postgres/decimal_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/sql/postgres/decimal_test.go -------------------------------------------------------------------------------- /sql/sql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/sql/sql.go -------------------------------------------------------------------------------- /suite/op_string.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/suite/op_string.go -------------------------------------------------------------------------------- /suite/parser.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/suite/parser.go -------------------------------------------------------------------------------- /suite/suite.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/suite/suite.go -------------------------------------------------------------------------------- /testdata/dectest/generate.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/testdata/dectest/generate.bash -------------------------------------------------------------------------------- /testdata/pytables/generate.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -xeuo pipefail 4 | 5 | time ./tables.py 2500 6 | -------------------------------------------------------------------------------- /testdata/pytables/tables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/testdata/pytables/tables.py -------------------------------------------------------------------------------- /util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/util.go -------------------------------------------------------------------------------- /zdebug.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/zdebug.go -------------------------------------------------------------------------------- /zdebug0.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ericlagergren/decimal/HEAD/zdebug0.go --------------------------------------------------------------------------------