double.ToString()

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does .NET support a way to convert a double/single to a string using a
minimum number of characters, similar to what Java does? If not, does anyone
have any links to algorithms to do this?

Thanks
 
Rock2000 said:
Does .NET support a way to convert a double/single to a string using a
minimum number of characters, similar to what Java does? If not, does anyone
have any links to algorithms to do this?

Do you mean the minimum number of characters required to round-trip the
value? If so, I suspect you're after the "r" format specified.
 

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