format_short_number
Convert large numbers into compact Persian or Latin forms, such as ۲٫۵ میلیون or 2.5M, with optional units like تومان.
Instructions
Short Persian number form: 2500000 -> '۲٫۵ میلیون', 1200 -> '۱٫۲ هزار' (style 'latin' gives 2.5M). Optional unit like تومان.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| style | No | ||
| value | Yes | ||
| maxFraction | No | ||
| persianDigits | No |