{"uid":"cap_hSyY6juevYNTwn2ObqIeD","slug":"money-openverbs-round-2bf1db8c","name":"Money OpenVerbs Round","description":"Round an amount to a currency's minor units (or an explicit minorUnits) with a chosen rounding mode: half-even (banker's, default), half-up, half-down, ceil, floor or trunc. Give a currency to derive minor units automatically (USD→2, JPY→0).","url":"https://money.openverbs.com/v1/round","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["amount"],"properties":{"mode":{"enum":["half-even","half-up","half-down","ceil","floor","trunc"],"type":"string","description":"Rounding mode. Default half-even (banker's)."},"amount":{"type":"number","description":"The amount to round."},"currency":{"type":"string","maxLength":3,"minLength":3,"description":"ISO 4217 code used to derive minor units. Optional."},"minorUnits":{"type":"integer","maximum":8,"minimum":0,"description":"Explicit number of minor-unit digits. Overrides currency. Default 2."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mM_YXqUQ0HyR_TE4N0cu_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rounds a numeric monetary amount to a currency's minor units using a specified rounding mode (banker's, half-up, half-down, ceil, floor, or trunc).","exampleAgentPrompt":"Round 19.455 USD to the correct number of decimal places using banker's rounding (half-even).","exampleUseCases":[{"title":"Normalizing prices before checkout","prompt":"I have a calculated price of 12.3456 for a USD transaction — can you round it to the correct cent precision using half-even (banker's rounding)?"},{"title":"Handling zero-decimal JPY amounts","prompt":"Round 1345.7 yen to the right number of decimal places for JPY — it should have no minor units."},{"title":"Ceiling rounding for tax calculations","prompt":"I need to round 8.3312 up to the nearest cent for a tax figure in USD — use ceiling rounding and 2 minor units."}],"resultDescription":"A rounded numeric value aligned to the specified currency's minor units (or the explicit minorUnits count), computed using the chosen rounding mode. For example, 19.455 in USD with half-even returns 19.46.","failureModes":["Missing required 'amount' field returns a validation error","Invalid currency code (not ISO 4217) may cause an error or be ignored","minorUnits out of range (>8 or <0) returns a validation error","Non-numeric amount returns a schema validation error","Unrecognized rounding mode enum value returns a validation error"],"whenToPreferThis":"Use this endpoint when you need deterministic, standards-compliant monetary rounding with full control over rounding mode, especially when working with multiple currencies and needing to respect their official minor-unit precision. Prefer it over generic math rounding when financial correctness matters (e.g. avoiding floating-point errors) or when you need banker's rounding (half-even) for regulatory or accounting compliance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:19.686Z","isFirstParty":false}