Error in sum of Persian numbers with %,d format | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Error in sum of Persian numbers with %,d format

I use %,d to thousand separator for my numbers, But when run program, my numbers showed as persian number and can not sum numbers. I use replace.all(“,”, “”) but it does not work.

22nd Sep 2019, 7:10 PM
hamid
hamid - avatar
1 Antwort
0
use: string.format(Locale.us, “%,d”, object); just this
22nd Sep 2019, 7:36 PM
hamid
hamid - avatar