Arabic Numerals Gone Rogue

Par 4
Question 73beginnerSheet 1750822302

Deep Breath

The mathematician who designed the number system got confused about Arabic numerals and decided to use actual Arabic-Indic digits. They escaped to become a tour guide in Morocco, claiming numbers are a universal language except when they're completely unreadable to Western developers. Your task: Perform arithmetic while translating between digit systems older than your framework without insulting algebra's ancestors.

Why You're Doing This

This tests character mapping, number system conversion, and mathematical operations across different digit representations. You're working with Unicode number systems that represent the same mathematical concepts but use different glyphs.

Take the W

  • Correctly maps Arabic-Indic digits to Western numerals
  • Performs mathematical operations after conversion
  • Handles mixed digit systems in expressions

Hard L

  • Fails to recognize Arabic-Indic digit characters
  • Produces incorrect mathematical results
  • Loses numerical precision during conversion

Edge Cases

  • Mixed Western and Arabic-Indic digits in same expression
  • Floating point numbers with Arabic-Indic digits
  • Mathematical operators that look similar but aren't
Input Format:
String containing Arabic-Indic mathematical expression
Expected Output:
Evaluated numerical result with conversion metadata
Example:
٣ + ٧ → {"result": 10, "original_system": "arabic_indic", "converted": "3 + 7"}
Hints
  • 💡 ٠١٢٣٤٥٦٧٨٩ maps to 0123456789
  • 💡 Convert first, then evaluate mathematical expressions
  • 💡 Both systems represent identical mathematical concepts