{"category":"calc","endpoint":"https://setget.net/v1/tools/number-format","examples":[{"input":{"decimals":2,"value":"1234567.891"},"output":{"locale":"en","style":"decimal","text":"1,234,567.89"}},{"input":{"decimals":1,"locale":"de","value":"1234567.891"},"output":{"locale":"de","style":"decimal","text":"1.234.567,9"},"title":"German separators"},{"input":{"style":"compact","value":"1234567"},"output":{"locale":"en","style":"compact","text":"1.2M"},"title":"Compact"},{"input":{"style":"engineering","value":"0.000047"},"output":{"locale":"en","style":"engineering","text":"47e-6"},"title":"Engineering notation"},{"input":{"style":"words","value":"1234"},"output":{"locale":"en","style":"words","text":"one thousand two hundred and thirty-four"},"title":"In words"},{"input":{"style":"ordinal","value":"22"},"output":{"locale":"en","style":"ordinal","text":"22nd"},"title":"Ordinal"}],"input_schema":{"additionalProperties":false,"properties":{"decimals":{"description":"Digits after the decimal point. Leave empty to keep the number as written.","maximum":20,"minimum":0,"type":"integer"},"locale":{"default":"en","description":"Separator style for decimal and compact output: en 1,234.5, de 1.234,5, fr 1 234,5, ch 1'234.5.","enum":["en","de","fr","ch"],"type":"string"},"style":{"default":"decimal","description":"Output style.","enum":["decimal","scientific","engineering","compact","ordinal","words"],"type":"string"},"value":{"description":"The number to format.","examples":["1234567.891"],"maxLength":60,"type":"string"}},"required":["value"],"type":"object"},"keywords":["number formatter","thousands separator","number to words","scientific notation converter","format number with commas","ordinal numbers","spell out number","1k 1m format"],"related":["base-convert","roman-numerals","percent"],"slug":"number-format","summary":"Format a number with thousands separators, in scientific or compact form, as an ordinal, or in words.","tier":"inline","title":"Number formatter","url":"https://setget.net/tools/number-format"}
