+ 1

How do you print with commas, like 123456 123,456?

8th Sep 2019, 8:45 PM
Maryana Rodriguez
Maryana Rodriguez - avatar
8 odpowiedzi
+ 4
I python, this is how you do it: a = "{:,}".format(your_number)
8th Sep 2019, 9:04 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
I will convert to string and consider the length before splicing
9th Sep 2019, 1:22 AM
Qudusayo
Qudusayo - avatar
0
How do you print 123456, with the thousands comma to equal 123,456
8th Sep 2019, 8:52 PM
Maryana Rodriguez
Maryana Rodriguez - avatar
0
I'm trying to learn how to do that
8th Sep 2019, 8:55 PM
Maryana Rodriguez
Maryana Rodriguez - avatar
0
Thank you I will try that
8th Sep 2019, 9:05 PM
Maryana Rodriguez
Maryana Rodriguez - avatar
9th Sep 2019, 12:32 AM
Maryana Rodriguez
Maryana Rodriguez - avatar