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.
 
Back
Top