---
title: "decimal 3.0.0 Breaking Changes on Hex | Since.dev"
description: "What each decimal release removed, renamed or changed: 7 breaking changes in 1 version on Hex, each with its source."
canonical_url: https://since.dev/packages/hex/decimal
last_updated: 2026-12-04
---

# decimal breaking changes

decimal 3.0.0 (May 7, 2026) is its newest release with breaking changes, 7 of them. The first: Behavior changed Decimal.cast.1. Every breaking API change we have recorded in decimal on Hex: 7 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.2.0`, released October 10, 2026. Apache-2.0 license. [Source repository](https://github.com/ericmj/decimal)

## decimal 3.0.0 breaking changes

decimal 3.0.0, released May 7, 2026: 7 breaking changes.

- **Behavior changed** `Decimal.cast.1`  

Decimal.cast/1 now rejects inputs whose digit count exceeds 34 or whose absolute exponent exceeds 6_144. Use cast/2 with max_digits: :infinity and max_exponent: :infinity to keep unbounded behavior. [github.com](https://github.com/ericmj/decimal/releases/tag/v3.0.0)
- **Behavior changed** `Decimal.parse.1`  

Decimal.parse/1 now rejects inputs whose digit count exceeds 34 or whose absolute exponent exceeds 6_144. Use parse/2 with max_digits: :infinity and max_exponent: :infinity to keep unbounded behavior. [github.com](https://github.com/ericmj/decimal/releases/tag/v3.0.0)
- **Behavior changed** `Decimal.to_string.2`  

Decimal.to_string/2 now raises ArgumentError when the rendered output would exceed 6_178 digit characters. Code that renders very large values must handle this error or pass max_digits: :infinity. [github.com](https://github.com/ericmj/decimal/releases/tag/v3.0.0)
- **Behavior changed** `Decimal.to_string.3`  

Decimal.to_string/3 now raises ArgumentError when the rendered output would exceed 6_178 digit characters. Code that renders very large values must handle this error or pass max_digits: :infinity. [github.com](https://github.com/ericmj/decimal/releases/tag/v3.0.0)
- **Default changed** `Decimal.cast.2`  

When not specified, cast/2 now limits max_digits to 34 and max_exponent to 6_144. Pass max_digits: :infinity and max_exponent: :infinity to keep the old unbounded behavior. [github.com](https://github.com/ericmj/decimal/releases/tag/v3.0.0)
- **Default changed** `Decimal.Context`  

The default Decimal.Context now uses precision 34, emax 6_144 and emin -6_143 instead of precision 28 and unbounded exponents. Results outside that range now signal overflow or underflow, so code relying on the old defaults may need an... [github.com](https://github.com/ericmj/decimal/releases/tag/v3.0.0)
- **Default changed** `Decimal.parse.2`  

When not specified, parse/2 now limits max_digits to 34 and max_exponent to 6_144. Pass max_digits: :infinity and max_exponent: :infinity to keep the old unbounded behavior. [github.com](https://github.com/ericmj/decimal/releases/tag/v3.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
