Package Usage: go: github.com/cockroachdb/apd
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.
2 versions
Latest release: almost 7 years ago
1,368 dependent packages
View more package details: https://packages.ecosyste.ms/registries/proxy.golang.org/packages/github.com/cockroachdb/apd
View more repository details: http://repos.ecosyste.ms/hosts/GitHub/repositories/cockroachdb%2Fapd
Dependent Repos 26,502
ossf/scorecard-action
Official GitHub Action for OpenSSF Scorecard.Size: 6.93 MB - Last synced: 5 days ago - Pushed: 9 days ago

spolti/kie-cloud-operator Fork of kiegroup/kie-cloud-operator
OCP Operator for KIESize: 100 MB - Last synced: 7 months ago - Pushed: over 1 year ago

xav-b/crypto-stuff
Tinkering aroundSize: 7.6 MB - Last synced: 11 months ago - Pushed: over 2 years ago

observIQ/grafana-agent Fork of grafana/agent
Telemetry agent for the LGTM stack.Size: 48.3 MB - Last synced: over 1 year ago - Pushed: over 1 year ago


tharun208/loki Fork of grafana/loki
Like Prometheus, but for logs.Size: 168 MB - Last synced: about 1 year ago - Pushed: about 2 years ago




jan--f/telemeter Fork of openshift/telemeter
Prometheus push federationSize: 35 MB - Last synced: almost 2 years ago - Pushed: almost 2 years ago

carlkyrillos/integreatly-operator Fork of integr8ly/integreatly-operator
An Openshift Operator based on the Operator SDK for installing and reconciling Integreatly servicesSize: 128 MB - Last synced: 7 months ago - Pushed: 7 months ago


jrivera-px/operator Fork of libopenstorage/operator
Storage operator for KubernetesSize: 34.9 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

paketo-buildpacks/go
A Cloud Native Buildpack for GoSize: 83.2 MB - Last synced: 6 days ago - Pushed: 6 days ago

paketo-buildpacks/dotnet-core
A Cloud Native Buildpack for .NET CoreSize: 176 MB - Last synced: 1 day ago - Pushed: 1 day ago


rxrddd/austin-v2
基于kratos 的聚合消息推送平台Size: 1.94 MB - Last synced: 10 months ago - Pushed: about 2 years ago


GoogleCloudPlatform/gke-poc-toolkit
📦 Demo generator for Google Kubernetes Engine!Size: 12.9 MB - Last synced: 19 days ago - Pushed: 24 days ago

drh-determined-ai/determined Fork of determined-ai/determined
Determined: Deep Learning Training PlatformSize: 114 MB - Last synced: 12 months ago - Pushed: over 1 year ago

Shashankreddysunkara/NavVis-go-webapp
Size: 483 KB - Last synced: about 1 month ago - Pushed: about 2 years ago

david-yu/consul Fork of hashicorp/consul
Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.Size: 290 MB - Last synced: 12 months ago - Pushed: over 2 years ago

auliawiguna/goshaka-starter
REST API boilerplate using Go, Fiber Framework, JWT, GORM, Swagger, Rate LimiterSize: 9.17 MB - Last synced: about 1 month ago - Pushed: 6 months ago

create-go-app/fiber-go-template
📝 Production-ready backend template with Fiber Go Web Framework for Create Go App CLI.Size: 641 KB - Last synced: about 1 year ago - Pushed: about 1 year ago


pulumi/pulumi-kubernetes-operator
A Kubernetes Operator that automates the deployment of Pulumi StacksSize: 31.7 MB - Last synced: 1 day ago - Pushed: 1 day ago

moov-io/irs
Internal Revenue Service (IRS) Filing Information Returns Electronically (FIRE)Size: 1.94 MB - Last synced: 3 days ago - Pushed: 3 days ago

moov-io/ach-test-harness
Programmatic and configurable ACH scenario testing of returns, NOC/corrections, reconciliation, etc.Size: 1.07 MB - Last synced: 2 days ago - Pushed: 2 days ago

VibrentHealth/keycloak-operator Fork of keycloak/keycloak-operator
A Kubernetes Operator based on the Operator SDK for syncing resources in KeycloakSize: 12.5 MB - Last synced: 4 months ago - Pushed: 4 months ago


vdavalon01/plumber Fork of streamdal/plumber
A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.Size: 43.3 MB - Last synced: almost 2 years ago - Pushed: almost 2 years ago

rogue73/hugo Fork of gohugoio/hugo
The world’s fastest framework for building websites.Size: 109 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

create-go-app/net_http-go-template
📝 net/http backend template for Create Go App CLI.Size: 355 KB - Last synced: 12 days ago - Pushed: about 2 months ago

sknot-rh/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShiftSize: 442 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

tts-tblock/kubernetes-client Fork of fabric8io/kubernetes-client
Java client for Kubernetes & OpenShiftSize: 449 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

raystack/compass
Compass is an enterprise data catalog that makes it easy to find, understand, and govern data.Size: 4.69 MB - Last synced: about 1 month ago - Pushed: over 1 year ago

trustbloc/auth 📦
Authorization ServerSize: 2.24 MB - Last synced: 11 months ago - Pushed: about 2 years ago

priyawadhwa/rekor Fork of sigstore/rekor
Signature Transparency LogSize: 12.7 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

jeffmendoza/allstar Fork of ossf/allstar
Size: 1.83 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

ankitm123/jx-pipeline Fork of jenkins-x-plugins/jx-pipeline
a small binary plugin for working with Jenkins X pipelinesSize: 2.02 MB - Last synced: about 1 month ago - Pushed: about 1 month ago

taoyao-code/Go-im
使用Golang语言作为服务端实现IM聊天接口Size: 33.4 MB - Last synced: 6 months ago - Pushed: 6 months ago

kokizzu/plumber Fork of streamdal/plumber
A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.Size: 48.2 MB - Last synced: 4 months ago - Pushed: 4 months ago

kokizzu/pirsch Fork of pirsch-analytics/pirsch
Pirsch is a drop-in, server-side, no-cookie, and privacy-focused analytics solution for Go.Size: 10.9 MB - Last synced: 1 day ago - Pushed: 1 day ago

kubesphere/notification-manager
K8s native notification management with multi-tenancy supportSize: 2.38 MB - Last synced: 1 day ago - Pushed: 10 days ago

joelrebel/hollow-serverservice Fork of metal-toolbox/hollow-serverservice
The API service which leverages CockroachDB as a backend to inventory firmware, bios, and other hardware information required for cohesive fleet managementSize: 1.11 MB - Last synced: 11 months ago - Pushed: over 1 year ago

boostchicken/opentelemetry-collector-contrib Fork of open-telemetry/opentelemetry-collector-contrib
Contrib repository for the OpenTelemetry CollectorSize: 262 MB - Last synced: 11 months ago - Pushed: over 1 year ago

PhoenixRedflash/hub Fork of artifacthub/hub
Find, install and publish Kubernetes packagesSize: 80.4 MB - Last synced: 11 months ago - Pushed: 12 months ago

moov-io/base
core libraries used in Moov projectsSize: 1.9 MB - Last synced: 7 days ago - Pushed: 7 days ago

cristalhq/dbumper
Database schema migrator.Size: 160 KB - Last synced: 23 days ago - Pushed: about 2 years ago

lightninglabs/lndclient
Golang client library for lndSize: 1.82 MB - Last synced: 21 days ago - Pushed: 21 days ago

me-diru/parca Fork of parca-dev/parca
Continuous profiling for analysis of CPU, memory usage over time, and down to the line number. Saving infrastructure cost, improving performance, and increasing reliability.Size: 13.1 MB - Last synced: about 1 year ago - Pushed: about 2 years ago

giftxtrade/api
GiftTrade RESTful API built with GoSize: 1.17 MB - Last synced: 6 months ago - Pushed: 6 months ago

buildpacks/registry-api
API for searching and reading the Buildpack RegistrySize: 1.54 MB - Last synced: 28 days ago - Pushed: 2 months ago

cisco-ie/telegraf Fork of influxdata/telegraf
The plugin-driven server agent for collecting & reporting metrics.Size: 44 MB - Last synced: 11 months ago - Pushed: over 2 years ago

kokizzu/vuls Fork of future-architect/vuls
Vulnerability scanner for Linux/FreeBSD, agentless, written in GoSize: 28.8 MB - Last synced: about 8 hours ago - Pushed: about 9 hours ago

blrm/osde2e Fork of openshift/osde2e
Repository of e2e test plumbing for OpenShift DedicatedSize: 431 MB - Last synced: almost 2 years ago - Pushed: about 2 years ago

fabriziosestito/trento Fork of trento-project/trento 📦
An open cloud-native web console improving on the life of SAP Applications administrators.Size: 22.4 MB - Last synced: about 1 year ago - Pushed: almost 3 years ago

aswinsuryan/submariner-operator Fork of submariner-io/submariner-operator
The submariner-operator installs and maintains your submariner deployment.Size: 5.83 MB - Last synced: 4 months ago - Pushed: 4 months ago

jeschkies/loki Fork of grafana/loki
Like Prometheus, but for logs.Size: 289 MB - Last synced: 2 days ago - Pushed: 2 days ago

grassrootseconomics/ge-dw-admin
CLI for admin DW operationsSize: 4.08 MB - Last synced: about 1 year ago - Pushed: about 2 years ago

openshift-assisted/assisted-swarm
Load testing tool for the Assisted InstallerSize: 688 KB - Last synced: 11 months ago - Pushed: 12 months ago

PanovAlexey/url_carver
Link shortening serviceSize: 689 KB - Last synced: about 2 years ago - Pushed: almost 3 years ago

alrs/magma Fork of magma/magma
Platform for building access networks and modular network servicesSize: 199 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

0xsha/CrazyWall
digital evidence board aka detective suite, aka CrazyWallSize: 5.14 MB - Last synced: about 1 year ago - Pushed: almost 3 years ago

sanekkurt/telegraf Fork of influxdata/telegraf
The plugin-driven server agent for collecting & reporting metrics.Size: 43.5 MB - Last synced: about 2 years ago - Pushed: almost 3 years ago

tpantelis/submariner-addon Fork of stolostron/submariner-addon
An addon of submariner in ocm to provide network connectivity and service discovery among clusters.Size: 35.8 MB - Last synced: about 8 hours ago - Pushed: about 9 hours ago

Tessg22/osde2e Fork of openshift/osde2e
Repository of e2e test plumbing for OpenShift DedicatedSize: 465 MB - Last synced: about 2 years ago - Pushed: about 2 years ago

getsynq/migrate Fork of golang-migrate/migrate
Database migrations. CLI and Golang library.Size: 1.63 MB - Last synced: 11 months ago - Pushed: almost 3 years ago

monicawoj/parca Fork of parca-dev/parca
Continuous profiling for analysis of CPU, memory usage over time, and down to the line number. Saving infrastructure cost, improving performance, and increasing reliability.Size: 26.6 MB - Last synced: 11 months ago - Pushed: about 2 years ago

mr-miles/consul Fork of hashicorp/consul
Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.Size: 368 MB - Last synced: 11 months ago - Pushed: over 1 year ago

yangrq1018/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 44.5 MB - Last synced: about 1 year ago - Pushed: over 1 year ago

The-Makers-of-things/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 34.2 MB - Last synced: 11 months ago - Pushed: 12 months ago

dumpmemory/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 44.2 MB - Last synced: about 1 year ago - Pushed: about 1 year ago

openware/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 36.1 MB - Last synced: 4 days ago - Pushed: about 2 years ago

woshidama323/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 65 MB - Last synced: 11 months ago - Pushed: about 2 years ago

tonywangcn/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 34.3 MB - Last synced: about 2 years ago - Pushed: over 2 years ago

arttobe/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 34.7 MB - Last synced: 11 months ago - Pushed: over 2 years ago

apigee/registry-experimental
Experimental code associated with the Registry API.Size: 129 MB - Last synced: 11 months ago - Pushed: 11 months ago

moov-io/go-sftp
A Go client for performing common SFTP operationsSize: 930 KB - Last synced: 3 days ago - Pushed: 3 days ago

KhryptorGraphics/gocryptotrader Fork of thrasher-corp/gocryptotrader
A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.Size: 36.6 MB - Last synced: 11 months ago - Pushed: over 2 years ago
