0

How to print number with commas as lakhs separators?

For Ex: 
val = 1023456
output = 10,23,456

val = 12345676
output = 123,45,676
jose_bacoy
  • 12,227
  • 1
  • 20
  • 38
Ganesh M
  • 548
  • 1
  • 4
  • 14
  • This post can answer your question: https://stackoverflow.com/questions/1823058/how-to-print-number-with-commas-as-thousands-separators – vitor carvalho May 30 '19 at 17:31
  • Check this https://stackoverflow.com/questions/40951552/convert-an-amount-to-indian-notation-in-python – Satish May 30 '19 at 18:17

1 Answers1

0

thanx for your prompt reply but I'm expecting the output format(1023456)) is 10,23,456 as lakhs separators and then in thousand separators

Ganesh M
  • 548
  • 1
  • 4
  • 14