Ecosyste.ms: Repos
An open API service providing repository metadata for many open source software ecosystems.
Package Usage: go: github.com/cockroachdb/apd/v2
Package apd implements arbitrary-precision decimals.
apd implements much of the decimal specification from the General
Decimal Arithmetic (http://speleotrove.com/decimal/) description, which
is refered to here as GDA. This is the same specification implemented by
pythons decimal module (https://docs.python.org/2/library/decimal.html)
and GCCs decimal extension.
Panic-free operation. The math/big types donβt return errors, and instead
panic under some conditions that are documented. This requires users to
validate the inputs before using them. Meanwhile, weβd like our decimal
operations to have more failure modes and more input requirements than the
math/big types, so using that API would be difficult. apd instead returns
errors when needed.
Support for standard functions. sqrt, ln, pow, etc.
Accurate and configurable precision. Operations will use enough internal
precision to produce a correct result at the requested precision. Precision
is set by a "context" structure that accompanies the function arguments,
as discussed in the next section.
Good performance. Operations will either be fast enough or will produce an
error if they will be slow. This prevents edge-case operations from consuming
lots of CPU or memory.
Condition flags and traps. All operations will report whether their
result is exact, is rounded, is over- or under-flowed, is subnormal
(https://en.wikipedia.org/wiki/Denormal_number), or is some other
condition. apd supports traps which will trigger an error on any of these
conditions. This makes it possible to guarantee exactness in computations,
if needed.
SQL scan and value methods are implemented. This allows the use of Decimals as
placeholder parameters and row result Scan destinations.
apd has two main types. The first is Decimal which holds the values of
decimals. It is simple and uses a big.Int with an exponent to describe
values. Most operations on Decimals canβt produce errors as they work
directly on the underlying big.Int. Notably, however, there are no arithmetic
operations on Decimals.
The second main type is Context, which is where all arithmetic operations
are defined. A Context describes the precision, range, and some other
restrictions during operations. These operations can all produce failures,
and so return errors.
Context operations, in addition to errors, return a Condition, which is a
bitfield of flags that occurred during an operation. These include overflow,
underflow, inexact, rounded, and others. The Traps field of a Context can be
set which will produce an error if the corresponding flag occurs. An example
of this is given below.
3 versions
Latest release: about 5 years ago
1,725 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/cockroachdb/apd/v2
View more repository details: https://repos.ecosyste.ms/hosts/GitHub/repositories/cockroachdb%2Fapd
Dependent Repos 2,259
paketo-buildpacks/bundle-install
A Cloud Native Buildpack to install gems from a Gemfile- v2.0.1 go.sum
Size: 5.55 MB - Last synced: 6 days ago - Pushed: 6 days ago
paketo-buildpacks/miniconda
- v2.0.1 go.sum
Size: 255 MB - Last synced: 28 days ago - Pushed: 28 days ago
paketo-buildpacks/bundler
- v2.0.1 go.sum
Size: 4.58 MB - Last synced: 3 days ago - Pushed: 3 days ago
paketo-buildpacks/python-start
- v2.0.1 go.sum
Size: 623 KB - Last synced: 3 days ago - Pushed: 4 days ago
paketo-buildpacks/composer-install
- v2.0.1 go.sum
Size: 1.71 MB - Last synced: 28 days ago - Pushed: 28 days ago
paketo-buildpacks/dep π¦
A Cloud Native Buildpack for Go Dep- v2.0.1 go.sum
Size: 8.02 MB - Last synced: 10 months ago - Pushed: over 1 year ago
paketo-buildpacks/poetry-run
- v2.0.1 go.sum
Size: 862 KB - Last synced: 9 days ago - Pushed: 9 days ago
paketo-buildpacks/php-nginx
PHP Nginx Cloud Native Buildpack- v2.0.1 go.sum
Size: 875 KB - Last synced: 9 days ago - Pushed: 9 days ago
paketo-buildpacks/npm-start
- v2.0.1 go.sum
Size: 1010 KB - Last synced: 9 days ago - Pushed: 9 days ago
paketo-buildpacks/composer
- v2.0.1 go.sum
Size: 1.39 MB - Last synced: 27 days ago - Pushed: 28 days ago
paketo-buildpacks/php-memcached-session-handler
php-memcached-session-handler CNB- v2.0.1 go.sum
Size: 1.04 MB - Last synced: 14 days ago - Pushed: 14 days ago
paketo-buildpacks/rails-assets
Cloud Native Buildpack for precompiling rails assets for Ruby applications.- v2.0.1 go.sum
Size: 17.4 MB - Last synced: 4 days ago - Pushed: 5 days ago
paketo-buildpacks/puma
- v2.0.1 go.sum
Size: 1.04 MB - Last synced: 29 days ago - Pushed: about 1 month ago
MokitaNetwork/alliance Fork of terra-money/alliance
π€ Alliance chain with x/alliance module- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 1.72 MB - Last synced: 9 months ago - Pushed: over 1 year ago
paketo-community/build-plan
- v2.0.1 go.sum
Size: 3.83 MB - Last synced: 7 days ago - Pushed: 7 days ago
Bughalla/goreleaser_goreleaser Fork of goreleaser/goreleaser
Deliver Go binaries as fast and easily as possible- v2.0.1 go.sum
Size: 15.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
mitchellh/squire π¦
- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 293 KB - Last synced: 18 days ago - Pushed: over 1 year ago
celestiaorg/celestia-node
Celestia Data Availability Nodes- v2.0.2 go.sum
Size: 85.1 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
benthosdev/benthos
Fancy stream processing made operationally mundane- v2.0.1 go.sum
Size: 28.4 MB - Last synced: 18 days ago - Pushed: 19 days ago
Zanda256/meshery-linkerd Fork of meshery/meshery-linkerd
Meshery adapter for Linkerd- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 1.59 MB - Last synced: 8 months ago - Pushed: about 1 year ago
cjellick/acorn Fork of acorn-io/runtime
Containerized Application Packaging Framework- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 7.72 MB - Last synced: about 1 month ago - Pushed: 7 months ago
listx/test-infra Fork of kubernetes/test-infra
Test infrastructure for the Kubernetes project.- v2.0.1 hack/tools/go.sum
Size: 202 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
shumshersubashgautam/Running-a-node-cosmos-SDK
- v2.0.2 cosmovisor/go.sum
- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 109 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
shumshersubashgautam/Cosmos-IBC-Denoms-with-Gaia
- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 17.1 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
bdengine/bde-cosmos-sdk
- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 383 MB - Last synced: 16 days ago - Pushed: 17 days ago
meshery/meshery-nginx-sm
Meshery Adapter for NGINX Service Mesh- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 11.5 MB - Last synced: 28 days ago - Pushed: 28 days ago
meshery/meshery-operator
Meshery Operator is a Kubernetes Operator that deploys and manages the lifecycle of two Meshery components critical to Meshery's operations of Kubernetes clusters- v2.0.1 go.sum
Size: 1.23 MB - Last synced: 21 days ago - Pushed: 21 days ago
meshery/meshery-cilium
Meshery Adapter for Cilium Service Mesh- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 986 KB - Last synced: 17 days ago - Pushed: 18 days ago
flyingdodo11/grafana
- v2.0.2 go.mod
- v2.0.1 go.sum
- v2.0.2 go.sum
Size: 19.7 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
lidofinance/cosmos-sdk π¦
- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 100 MB - Last synced: 4 months ago - Pushed: about 1 year ago
vaikas/policy-controller-test-543
Testing pulling policy-controller from sigstore/cosign- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 18.7 MB - Last synced: about 1 year ago - Pushed: about 1 year ago
y-akahori-ramen/ueLogHandler
Utility for handling Unreal Engine format log in Go.- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 47.9 KB - Last synced: 10 months ago - Pushed: almost 2 years ago
sigstore/cosign
Code signing and transparency for containers and binaries- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 21.5 MB - Last synced: 2 days ago - Pushed: 2 days ago
PacktPublishing/Network-Automation-with-Go
Network Automation with Go, Published by Packt- v2.0.1 ch08/cue/go.mod
- v2.0.1 ch08/cue/go.sum
- v2.0.1 ch08/state/go.mod
- v2.0.1 ch08/state/go.sum
Size: 69.9 MB - Last synced: about 1 month ago - Pushed: 11 months ago
miguelgargallo/canar Fork of ignite/cli
Canar uses Ignite CLI, Ignite CLI is the all-in-one platform to build, launch, and maintain any crypto application on a sovereign and secured blockchain- v2.0.2 go.mod
- v2.0.2 go.sum
- v2.0.2 ignite/pkg/cosmosanalysis/testdata/chain/go.mod
Size: 2.12 GB - Last synced: about 1 year ago - Pushed: about 1 year ago
ossf/scorecard
OpenSSF Scorecard - Security health metrics for Open Source- v2.0.1 tools/go.sum
Size: 191 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
cue-unity/example
A minimal example CUE project that defines a unity manifest and tests. See https://github.com/cue-sh/unity for more details- v2.0.1 go.sum
Size: 40 KB - Last synced: about 1 month ago - Pushed: almost 2 years ago
meshery/meshery-consul
Meshery adapter for Consul- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 1.67 MB - Last synced: 7 months ago - Pushed: 7 months ago
cnfatal/kubegems Fork of kubegems/kubegems
KubeGems Core Service- v2.0.1 go.sum
Size: 8.09 MB - Last synced: 12 months ago - Pushed: 12 months ago
stackrox/scanner
- v2.0.1 go.sum
Size: 172 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
meshery/meshkit
Common microservices framework for Meshery components- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 38.5 MB - Last synced: 8 days ago - Pushed: 8 days ago
perkeep/perkeep
Perkeep (nΓ©e Camlistore) is your personal storage system for life: a way of storing, syncing, sharing, modelling and backing up content.- v2.0.1 go.sum
Size: 46.5 MB - Last synced: about 1 month ago - Pushed: 2 months ago
dileepdkumar/https-github.com-cockroachdb-cockroach2
- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 998 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
dclareio/cue-wasm
Wasm based bindings for cue in javascript- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 85.1 MB - Last synced: 3 months ago - Pushed: over 1 year ago
octohelm/cuemod
experimental cuelang mod tool- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 1.1 MB - Last synced: about 1 month ago - Pushed: 3 months ago
paketo-buildpacks/go-build
A Cloud Native Buildpack for compiling Go applications- v2.0.1 go.sum
Size: 1.14 MB - Last synced: 7 days ago - Pushed: 7 days ago
paketo-buildpacks/dotnet-publish
- v2.0.1 go.sum
Size: 230 MB - Last synced: 2 days ago - Pushed: 3 days ago
paketo-buildpacks/dotnet-core-runtime π¦
- v2.0.1 go.sum
Size: 11.2 MB - Last synced: 10 months ago - Pushed: over 1 year ago
meshery/meshery-traefik-mesh
Meshery adapter for Maesh- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 872 KB - Last synced: 7 months ago - Pushed: 7 months ago
sigstore/policy-controller
- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 23.9 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
tektoncd/chains
Supply Chain Security in Tekton Pipelines- v2.0.1 go.sum
Size: 70.2 MB - Last synced: 2 days ago - Pushed: 2 days ago
paketo-buildpacks/apache-tomee
A Cloud Native Buildpack that contributes Apache Tomee and Process Types for the application server- v2.0.1 go.sum
Size: 5.77 MB - Last synced: 4 days ago - Pushed: 5 days ago
xinau/terraform-provider-cue
Terraform provider for generating JSON documents with CUE.- v2.0.1 go.sum
Size: 208 KB - Last synced: 3 months ago - Pushed: about 1 year ago
quay/quay-operator
Operator for deploying and managing Quay- v2.0.1 go.sum
Size: 39.7 MB - Last synced: 19 days ago - Pushed: 21 days ago
paketo-buildpacks/source-removal
- v2.0.1 go.sum
Size: 20.7 MB - Last synced: 3 days ago - Pushed: 3 days ago
paketo-buildpacks/tiny-builder π¦
- v2.0.1 go.sum
Size: 5 MB - Last synced: 9 months ago - Pushed: 10 months ago
schnetzlerjoe/lens Fork of strangelove-ventures/lens
βοΈβ€οΈπ Brought to you by the LensCrafters- v2.0.2 go.sum
Size: 17.9 MB - Last synced: 10 months ago - Pushed: over 1 year ago
nuclearwu/kubevela Fork of kubevela/kubevela
The Modern Application Platform.- v2.0.2 go.mod
- v2.0.2 go.sum
Size: 60.7 MB - Last synced: 9 months ago - Pushed: 9 months ago
input-output-hk/cicero
event-driven automation for Nomad- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 3.9 MB - Last synced: 3 months ago - Pushed: about 1 year ago
perses/perses
The CNCF candidate for observability visualisation. Already supports Prometheus - more data sources to come!- v2.0.1 go.mod
- v2.0.1 go.sum
Size: 26.5 MB - Last synced: about 1 month ago - Pushed: about 1 month ago
mmsqe/gravity-bridge Fork of crypto-org-chain/gravity-bridge
A CosmosSDK application for moving assets on and off of EVM based, POW chains- v2.0.2 go.mod
- v2.0.2 go.sum
- v2.0.2 module/go.mod
- v2.0.2 module/go.sum
- v2.0.2 testnet/go.sum
Size: 31.6 MB - Last synced: 8 months ago - Pushed: 10 months ago
bianjieai/cosmos-sync π¦
A daemon that synchronizes IRITA blockchain data into a database- v2.0.2 go.mod
Size: 1.4 MB - Last synced: about 1 month ago - Pushed: 7 months ago