0

What does that mean?

Hello, This is the code I have a problem with Random rnd = new Random(); Console.WriteLine("Generating 10 random numbers:"); for (uint ctr = 1; ctr <= 10; ctr++) Console.WriteLine(

quot;{rnd.Next(),15:N0}"); In pertiqulare I dont understand the ,15:No part, whats the use of this part?

11th Mar 2020, 9:04 AM
Mixi Mixi
2 Answers
0
15:N0 means 15 character wide column, right align, formatted as number, 0 decimal places. Search about Composite Formatting
11th Mar 2020, 6:48 PM
Igor Kostrikin
Igor Kostrikin - avatar
0
Thanks
11th Mar 2020, 11:28 PM
Mixi Mixi