Error in sum of Persian numbers with %,d format | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
0
use: string.format(Locale.us, ā€œ%,dā€, object); just this
22nd Sep 2019, 7:36 PM
hamid
hamid - avatar