---
title: "Discussion on \"Money values in MENA apps: minor units, rounding and invoice QA\" | Hashnode"
description: "Discussion on \"Money values in MENA apps: minor units, rounding and invoice QA\". A production guide to currency exponents, payment API amounts, calculation precision, and Saudi and UAE e-invoice rules."
url: "https://hashnode.com/posts/mena-money-minor-units-rounding-invoice-qa/6a92c08bfdaad436686f8d5d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Money values in MENA apps: minor units, rounding and invoice QA](https://www.sultanbyte.com/mena-money-minor-units-rounding-invoice-qa?utm_source=hashnode&utm_medium=feed)

A production guide to currency exponents, payment API amounts, calculation precision, and Saudi and UAE e-invoice rules.

Aug 29 · 8 min read · sultanbyte.com  
Read the article

-   [#fintech](https://hashnode.com/tag/fintech)
-   [#payments](https://hashnode.com/tag/payments)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#e-invoicing](https://hashnode.com/tag/e-invoicing)

## Written by

[Hussain Fakhruddin](https://hashnode.com/@hussainanjar)

@hussainanjar · Dubai, UAE

  
[View profile](https://hashnode.com/@hussainanjar)

Founder & CTO Qualascend.com | Staticforms.dev

I have lead the Engineering for multiple startups in UAE. I also have my own agency qualascend.com.

## Responses 1

Markdown supported · ⌘↵ to post

[Adam Lewis](https://hashnode.com/@nark3d)

[Sep 2](https://hashnode.com/posts/mena-money-minor-units-rounding-invoice-qa/6a92c08bfdaad436686f8d5d/comment/6a97f1ef9b38ae5fff65979b)

I don't work in payments, but the roundMoney() point travels. A generic helper hides which boundary required the rounding, and once the operation is named the rule it implements has somewhere to live. Same with the Money type over a bare decimal, the scale and the rounding rule end up in the type where the compiler can check them instead of in a convention someone has to remember.
