Skip to main content
plugin

decimal-scaled — Claude Code plugin: features and setup

This plugin connects Claude Code workflows with the decimal-scaled Rust crate for fixed-precision decimal arithmetic. It suits projects that need predictable decimal calculations and consistent results across platforms.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install decimal-scaled@claude-community
Open on GitHub

What decimal-scaled does

decimal-scaled provides decimal number types whose precision is chosen at compile time. Its arithmetic supports exact decimal addition and subtraction, along with correctly rounded multiplication and division. Several rounding policies are available, and mathematical operations can use a strict integer-based path for consistent results across different platforms.

The plugin is associated with the Rust crate decimal-scaled. Its documentation covers selecting numeric width and scale, converting between types, and choosing rounding behavior. The crate can also be used in no_std and no_std + alloc configurations, while strict transcendental functions work without libm.

To add the plugin to Claude Code, run the marketplace and installation commands in sequence. Rust projects can declare the crate in Cargo.toml with version 0.5 and the macros feature. Rust 1.89 is the minimum supported compiler version, so check the toolchain before adding the dependency.

What it helps with

  • calculate decimal amounts without binary floating-point representation errors
  • fix decimal precision at compile time
  • select a rounding policy for arithmetic operations
  • reproduce mathematical results across operating systems and processor architectures
  • choose a numeric width for high-precision calculations

Example prompts for the agent

  • Help me add decimal-scaled to my Rust project's Cargo.toml.
  • Show me how to choose decimal precision and compare the D38 and D76 types.
  • Explain how to calculate a square root in strict mode and configure rounding.

How to install decimal-scaled

Plugin marketplace

/plugin marketplace add anthropics/claude-plugins-community
/plugin install decimal-scaled@claude-community

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about decimal-scaled

How do I install decimal-scaled in Claude Code?

Run these commands in order: /plugin marketplace add anthropics/claude-plugins-community, followed by /plugin install decimal-scaled@claude-community.

What does decimal-scaled do?

It connects Claude Code with a Rust library for fixed-precision decimal arithmetic. The crate supports configurable scales, rounding policies, and mathematical functions.

Which Rust version does decimal-scaled require?

The minimum supported Rust version is 1.89. The crate also supports no_std + alloc, and its strict integer-based computation path does not depend on libm.

Similar plugins

All plugins for Programming languages →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor