Formatting in C#

  • Thread starter Thread starter Smith
  • Start date Start date
S

Smith

Like c++, is there any way to apply formatting in c# like println("%c",i) ?
 
Hi Smith,

Try String.Format method.
You might also use ToString().
 
Look at the options for ToString()

I know ToString("F2") does to 2 dp there might be other options to help you

Rollasoc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top