Error in sum of Persian numbers with %,d format | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
0
use: string.format(Locale.us, “%,d”, object); just this
22nd Sep 2019, 7:36 PM
hamid
hamid - avatar