"Just display the number. What could go wrong?"
Localize your app into Arabic and find out.

Instead of using raw numbers in your UI, use NumberFormat.
Not only digits depend on the locale, but also decimal separators, thousand groupings, and many other formatting conventions.

Your future self will thank you.