In C#, is it possible to perform ToString on a float and get the value without using exponentials?
For example, consider the following:
float dummy;
Without some further background info, it's hard to tell - but it sounds like you want decimal semantics. So why not use the decimal
type instead?
decimal dummy;
dummy = 0.000006M;
The decimal type is more accurate at representing decimal numbers than float
or double
, but it is not as performant. See here for more info.