Problem with formating "Double" value

  • Thread starter Thread starter Marek Zegarek
  • Start date Start date
M

Marek Zegarek

Hello!

I must write an application, that will do the same as my Excel application.
This application is something like converter of different variables. All
values are double.
In Excel are few types of result from 1,999.01, 0.331 to 0.000091. All is
maded by formating output from function.
This format looks like this: "_-* # ##0,00_-;-* # ##0,00_-;_-*
"-"??_-;_-@_-"
How to use it in VB.NET?

Regards
Marek
 
Hello, try :

http://msdn.microsoft.com/en-us/library/26etazsy.aspx (Formatting Overview)

and in particular see the String.Format function. Also you can't AFAIK enter
multiple formats (for positive, 0 and negative value) out of the box.

Some more context could be helpfull as formatting is simple if done
programmatically but you have also some advanced options...
 
Back
Top