Click here to Skip to main content
15,927,060 members
Home / Discussions / C#
   

C#

 
GeneralRe: Passing a structure with array pointers to a Win32 DLL Pin
Heath Stewart16-Feb-04 6:18
protectorHeath Stewart16-Feb-04 6:18 
GeneralAdvanced File Property Pin
KriZ~15-Feb-04 19:21
sussKriZ~15-Feb-04 19:21 
GeneralRe: Advanced File Property Pin
Heath Stewart16-Feb-04 6:09
protectorHeath Stewart16-Feb-04 6:09 
Generalall C# user read ^_^ a windows made for C# programmers Plus a funny joke about C#n00b for everybody Pin
CSharp131415-Feb-04 18:38
CSharp131415-Feb-04 18:38 
GeneralRe: all C# user read ^_^ a windows made for C# programmers Plus a funny joke about C#n00b for everybody Pin
CWIZO16-Feb-04 8:21
CWIZO16-Feb-04 8:21 
GeneralSingle/Double.ToString() help Pin
Verdant12315-Feb-04 16:53
Verdant12315-Feb-04 16:53 
GeneralRe: Single/Double.ToString() help Pin
Werdna15-Feb-04 20:21
Werdna15-Feb-04 20:21 
GeneralRe: Single/Double.ToString() help Pin
Heath Stewart16-Feb-04 5:55
protectorHeath Stewart16-Feb-04 5:55 
You keep reading the wrong things. Did you try reading the documentation for the NumberFormatInfo, which implements IFormatProvider? You don't even need to specify this for numeric types in string.Format (or any other formatting method like Console.WriteLine). There's also a big section on formatting in the .NET Framework SDK, which should be your first stop for .NET-related documentation, articles, and examples.

There is a simple solution for the scientific notation:
string s = string.Format("{0:e}", myNum);
// OR
s = myNum.ToString("e"); // Also documented in numeric type's ToString docs


 

Microsoft MVP, Visual C#
My Articles
GeneralFree C# Training Pin
Tony M John15-Feb-04 15:07
Tony M John15-Feb-04 15:07 
GeneralRe: Free C# Training Pin
Anonymous16-Feb-04 15:08
Anonymous16-Feb-04 15:08 
GeneralParsing Tab Delimited File Pin
Verdant12315-Feb-04 14:05
Verdant12315-Feb-04 14:05 
GeneralRe: Parsing Tab Delimited File Pin
Colin Angus Mackay15-Feb-04 14:24
Colin Angus Mackay15-Feb-04 14:24 
GeneralRe: Parsing Tab Delimited File Pin
Verdant12315-Feb-04 14:51
Verdant12315-Feb-04 14:51 
GeneralRe: Parsing Tab Delimited File Pin
Werdna15-Feb-04 16:45
Werdna15-Feb-04 16:45 
GeneralRe: Parsing Tab Delimited File Pin
Verdant12315-Feb-04 16:47
Verdant12315-Feb-04 16:47 
GeneralRe: Parsing Tab Delimited File Pin
Daniel Turini16-Feb-04 1:59
Daniel Turini16-Feb-04 1:59 
GeneralRe: Parsing Tab Delimited File Pin
Verdant12316-Feb-04 7:55
Verdant12316-Feb-04 7:55 
Questionhow to restrict appearance of child forms Pin
visiontec15-Feb-04 13:29
visiontec15-Feb-04 13:29 
AnswerRe: how to restrict appearance of child forms Pin
Colin Angus Mackay15-Feb-04 14:40
Colin Angus Mackay15-Feb-04 14:40 
GeneralTab Pages Navigation Pin
visiontec15-Feb-04 12:58
visiontec15-Feb-04 12:58 
GeneralRe: Tab Pages Navigation Pin
Heath Stewart16-Feb-04 5:48
protectorHeath Stewart16-Feb-04 5:48 
QuestionRemoting? Pin
Kevin Tambascio15-Feb-04 12:39
Kevin Tambascio15-Feb-04 12:39 
AnswerRe: Remoting? Pin
Marc Clifton15-Feb-04 15:42
mvaMarc Clifton15-Feb-04 15:42 
GeneralRe: Remoting? Pin
Kevin Tambascio16-Feb-04 3:09
Kevin Tambascio16-Feb-04 3:09 
GeneralRe: Remoting? Pin
Marc Clifton16-Feb-04 9:29
mvaMarc Clifton16-Feb-04 9:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.