{"uid":"cap_1rBsfmEqQMFP1EU1Q0_Os","slug":"agent402-tools-number-formatter-99ebba4b","name":"agent402.tools Number Formatter","description":"Format a number: thousands separators, fixed decimals, optional currency, or compact (1.2K / 3.4M).","url":"https://agent402.tools/api/number-format","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"number"},"compact":{"type":"boolean"},"currency":{"type":"string","description":"ISO code e.g. USD"},"decimals":{"type":"number"}}},"responseSchema":{"type":"json","example":{"result":"1,234,567.89"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OhRJh_anll4kQsfQ0YqkV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats a number with thousands separators, fixed decimal places, optional currency symbol, or compact notation (e.g. 1.2K, 3.4M).","exampleAgentPrompt":"Format the number 1482300.5 with two decimal places and USD currency — and also give me the compact version like 1.5M.","exampleUseCases":null,"resultDescription":"Returns a formatted string representation of the input number, applying thousands separators, fixed decimal precision, an optional currency prefix (e.g. $1,482,300.50), and/or compact notation (e.g. 1.5M).","failureModes":["Missing or non-numeric value field returns validation error","Unrecognized currency ISO code may produce unexpected output","Very large or very small floating-point values may lose precision","Invalid decimals value (negative or non-integer) may cause error"],"whenToPreferThis":"Use this endpoint when you need to render a raw number into a human-readable display string — especially for financial figures needing currency symbols, large numbers needing compact notation, or any value needing consistent decimal formatting for UI display or reports.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.137Z","isFirstParty":false}