- Home
- Skills
- Finance & Accounting
- Repair Money Rounding Bugs
More screenshots
Works with the AI Agents you already use
Repair Money Rounding Bugs
Repair rounding, floating-point, tax, discount, and total mismatches across existing apps.
$1
Repair Money Rounding Bugs
Example session with this skill installed
The total on our generated invoices is sometimes $0.01 off from the sum of the line items when discounts are applied. Can you fix the rounding logic in the billing service?
- Read your context and instructions
- Compiled the repair money rounding
I inspected billing_service.py and found floating-point math being used for discounts. I established a Monetary Contract using integer minor units, implemented 'Half Even' rounding for line items, and added a remainder allocation check. New tests confirm subtotals now reconcile to $0.00 diff.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Binary floating-point math and inconsistent rounding create "off-by-one-cent" errors in invoices, taxes, and refunds. These small discrepancies lead to failed audits, broken payment provider syncs, and reconciliation nightmares.
What it does
- Traces monetary values from input through storage, calculation, and display to find precision loss.
- Establishes a strict Monetary Contract defining rounding modes, currency scales, and calculation stages.
- Replaces unsafe arithmetic with integer minor units or exact decimal types.
- Implements remainder allocation logic to ensure distributed discounts or taxes sum correctly to the total.
- Runs automated reconciliation tests to verify that stored and displayed totals match exactly.
Frameworks & tools
Works with any stack using Read, Edit, and Bash tools. Specifically audits SQL schemas, ORM precision, and payment integrations like Stripe or PayPal.
Why this beats prompting it yourself
General LLMs often suggest simple .toFixed(2) hacks that compound rounding errors. This skill enforces a professional financial engineering workflow, distinguishing between rates, quantities, and amounts while ensuring compliance with currency-specific scales.
Use cases
- Fixing invoice subtotals that do not sum correctly due to line-item rounding.
- Standardizing currency conversion logic across multi-currency databases.
- Repairing "penny-gap" mismatches between your application and payment gateways.
- Auditing tax calculation logic to handle inclusive and exclusive tax rules.
Known limitations
Will not invent tax policies or accounting rules without user evidence. Does not perform destructive migrations on production data without an audit dry-run.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Finance & Accounting.
Does not fetch live exchange rates. Avoids creating real charges or refunds. Requires existing project context to determine specific rounding policies.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 months ago
Permissions
Permissions are limited to the active local workspace and are used to inspect user-supplied or local workspace files; create or modify bounded local fixes, tests, documentation, or review artifacts; run repository-supported local tests, checks, builds, or parsing commands. The skill package does not require bundled credentials, unrestricted external network access, or automatic production changes.