GoSF - Arbitrary-Precision Decimals
A calendar icon. June 21, 2017
A GPS style location icon. Capital One
201 3rd St, San Francisco, CA 94103
A head and upper torso.
rsvp
Event details

CockroachDB has released apd, a new arbitrary-precision decimal package for Go. apd supports normal arithmetic and many elementary functions (ln, sqrt, exp) at any precision. The implementations are based on academic research, making them accurate and fast.

Flags are raised during overflow, rounding, and other conditions, making it possible to safely perform bounded and exact computations. It replaced the underlying implementation of the DECIMAL type in CockroachDB, resulting in much greater accuracy and speed.

Sign up to hear about upcoming events in your area.