5 ms·
Can you output Eastern-Arabic numerals (e.g. ٠١٢٣٤٥٦٧٨٩١٠) with sprintf? My gf sometimes uses them and its confusing as fuck for me. Especially as the numbers a
by kingcharles 5y ago
Can you output Eastern-Arabic numerals (e.g. ٠١٢٣٤٥٦٧٨٩١٠) with sprintf? My gf sometimes uses them and its confusing as fuck for me. Especially as the numbers are then written RtL.
- microtherion 5y agoI believe the numbers are the one thing in Arabic that are NOT written RTL.
- gumby 5y agoThey are written RTL, it's simply that in Arabic numbers are written little endian. In case this comes off as sarcastic, it is not intended so.
- thayne 5y agoIn fact, the fact that arabic is written rtl is why our numbers are big endian. Because the European number system is based on the arabic system.
- gumby 5y agoI don’t think that is true. Europe got decimal digits with their own characters via the arabs, true, but we use shapes derived from the original source, the Devanagari digits, not the shapes the Arabs developed due to their writing system/technology. South Asian languages other than Urdu are LTR. You can see the parallels here (clipped from Wikipedia): ० 0 १ 1 २ 2 ३ 3 ४ 4 ५ 5 ६ 6 ७ 7 ८ 8 ९ 9
- microtherion 5y agoAh, I get your point. They are _pronounced_ little endian, and consequently written that way RTL, which works out to big endian LTR, of course.