vb.net - .NET Number format - Separator on 2 digits -


number format not working expected:

console.writeline(string.format("{0:##,##,##,###.####}", 12345678))  'outputs 12,345,678 'expected output 1,23,54,678 based on format provided 

how expected output?

if specific culture (say india) can specify in string formatter:

var culture = new cultureinfo("gu-in") console.writeline(string.format(culture, "{0:##,##,##,###.####}", 12345678)) 

which give output:

1,23,45,678 

this gujarati. other indian cultures ("hi-in" hindi, "kn-in" kannada, etc) work well.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -