Watch
1
0
Fork
You've already forked arc
0
forked from hesabix/arc
arc/docs/hscript/tutorials/number-format.md

21 lines
604 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
doc_id: hscript.tutorial.number-format
title: قالب‌بندی اعداد
tags: [tutorial, number, format]
version: 1
---
# قالب‌بندی اعداد
```hscript
report.number_format(style="western") # 1,234,567.50
report.number_format(style="fa") # 1٬234٬567٫50
report.kpi("فروش", 12500000, format="currency")
report.kpi("رشد", 12.5, format="percent")
report.table(rows, formats={"total_debit": "currency", "rate": "number:2"})
report.text(format_number(9999, "number"))
```
قالب‌ها: `integer`, `number`, `number:2`, `currency`, `decimal:3`, `percent`, `raw`
EOF