Hi,
I am trying to convert a double to a string. The problem the value of
the double may vary and I need to always the exact value without the
exponential and without rounding.
Example: double 0.0000000000000 0000000023 should be string
0.0000000000000 0000000023 and not 0.00 or 2.3-E24
I tried it with
Console.WriteLi ne(dd.ToString( "X", CultureInfo.Inv ariantCulture))
X=different numbertypes like G,D,N,...
Double.Parse(dd , NumberStyles.Al lowCurrencySymb ol Or
NumberStyles.Nu mber Or ...
string.Format(" {0:0.####}", myNumber);
Is there anyone out there who allready found a solution for it?
I am trying to convert a double to a string. The problem the value of
the double may vary and I need to always the exact value without the
exponential and without rounding.
Example: double 0.0000000000000 0000000023 should be string
0.0000000000000 0000000023 and not 0.00 or 2.3-E24
I tried it with
Console.WriteLi ne(dd.ToString( "X", CultureInfo.Inv ariantCulture))
X=different numbertypes like G,D,N,...
Double.Parse(dd , NumberStyles.Al lowCurrencySymb ol Or
NumberStyles.Nu mber Or ...
string.Format(" {0:0.####}", myNumber);
Is there anyone out there who allready found a solution for it?
Comment