{"uid":"cap_XAPMhTCjIqQWuKrWQ4NDR","slug":"factorial-calculator-big-integer-precision-e4571f15","name":"Factorial Calculator (Big-Integer Precision)","description":"Compute the factorial of a number with exact big-integer precision and its digit count. Pure CPU, instant.","url":"https://api.gadgethumans.com/factorial?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["n"],"properties":{"n":{"type":"integer","description":"Number (0-1000)"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"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_2MjXRfr6D8hVMIWEilUtC","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":"Computes the exact factorial of an integer n (0–1000) and returns the result with full big-integer precision along with its digit count.","exampleAgentPrompt":"What is the exact factorial of 150, and how many digits does the result have?","exampleUseCases":[{"title":"Combinatorics calculation for permutations","prompt":"I need to know the exact value of 52 factorial for a card game probability calculation — give me the full number and how many digits it has."},{"title":"Verifying large factorial digit count","prompt":"Can you tell me exactly how many digits are in 1000 factorial? I need the precise digit count, not an approximation."},{"title":"Computing factorial of zero or small numbers","prompt":"What is 0 factorial? And just to double-check my math homework, what's the exact value of 10 factorial?"}],"resultDescription":"A JSON response containing the exact big-integer factorial value of n and the total number of digits in that result, computed with full precision (no floating-point approximation).","failureModes":["n out of range (must be 0–1000): returns an error indicating invalid input","non-integer or missing n parameter: returns a validation error","n is negative: returns an error as factorial is undefined for negative integers"],"whenToPreferThis":"Choose this endpoint when you need an exact, full-precision factorial result (not a floating-point approximation) for integers up to 1000, especially when digit count matters or the result will be used in further exact arithmetic. Prefer over general-purpose math libraries when you need a hosted, pay-per-call API with no setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:36:52.883Z","isFirstParty":false,"canonicalSlug":"factorial-calculator-big-integer-precision-e4571f15"}