A straightforward arbitrary-precision calculator that handles the math expressions you throw at it without floating-point nonsense. Built on big.js, so 0.1 + 0.2 actually equals 0.3 like it should. Supports the standard operators plus exponents (right-associative, integers only), respects precedence, and handles parentheses correctly. You call it from the command line with an expression string and get a result back. The limitation list is honest: no trig functions, no variables, no modulo. It does one thing well, which is evaluate basic arithmetic precisely. Good for when you need Claude to crunch numbers in financial contexts or anywhere decimal accuracy matters more than scientific computing features.

GitHub stars
534
last updated
Apr 29, 2026

Install

$ npx -y skills add code-and-sorts/awesome-copilot-agents --skill calculator --agent claude-code

Installs into .claude/skills of the current project.

Files

Calculator

Evaluate arithmetic expressions with arbitrary-precision decimal math using big.js.

When to Use

  • User asks to calculate or evaluate a math expression
  • Precise decimal arithmetic is needed (avoids floating-point errors like 0.1 + 0.2 = 0.30000000000000004)
  • Expressions involve parentheses, operator precedence, or exponents

Supported Operations

OperatorDescriptionPrecedence
+Addition1
-Subtraction1
*Multiplication2
/Division2
^Exponent (right-associative)3
()ParenthesesHighest

Usage

cd scripts
npm ci || npm install
npm run build
npm run calculate "<expression>"

Examples

InputOutput
"3 + 2"5
"10 / 4"2.5
"2 ^ 10"1024
"(2 + 3) * 4"20
"1 + 4.5 * (3-6) / 5"-1.7
"-5 + 3"-2
"2 ^ 3 ^ 2"512 (right-associative: 2^9)

Edge Cases

Sponsors

Details

Repository
github.com/code-and-sorts/awesome-copilot-agents
Category
AI & Agent Building
License
CC0-1.0
First seen
Jun 11, 2026

More from code-and-sorts/awesome-copilot-agents

All 2
1codeaholicguy avatarchangelogcodeaholicguy/ai-devkitAI DevKit · Update CHANGELOG.md Unreleased items from git commits since the latest release. Use when users ask to update changelog/release notes from recent com0skills.sh installs
2codeaholicguy avatardev-lifecyclecodeaholicguy/ai-devkitAI DevKit · Structured SDLC workflow with 8 phases — requirements, design review, planning, implementation, testing, and code review. Use when the user wants to0skills.sh installs
3codeaholicguy avatardocument-codecodeaholicguy/ai-devkitAI DevKit · Document a code entry point with structured analysis, dependency mapping, and saved knowledge docs. Use when users ask to document, understand, or m0skills.sh installs
4codeaholicguy avatarmemorycodeaholicguy/ai-devkitAI DevKit · Use the memory CLI as a durable knowledge layer. Search before non-trivial work, store verified reusable knowledge, update stale entries, and avoid 0skills.sh installs
5codeaholicguy avatarsimplify-implementationcodeaholicguy/ai-devkitAI DevKit · Analyze and simplify existing implementations to reduce complexity, improve maintainability, and enhance scalability. Use when users ask to simplify0skills.sh installs
6codeaholicguy avatarstructured-debugcodeaholicguy/ai-devkitAI DevKit · Guide structured debugging before code changes by clarifying expected behavior, reproducing issues, identifying likely root causes, and agreeing on 0skills.sh installs