precision control

Hi all:
I'm looking for floating type precision control in .NET...
When I try to display 0.33 on a ListBox Control, this is what I do:
.NET 2.0, C++:
ListBox^ l = gcnew ListBox();
// ... setup code
double d = 0.33;
I->Items->Add( Convert::ToString( d ) );

it gives me 0.32999999999999999 on the listbox

is there any way to control the precision of floating point numbers
so that I can have precise 0.33 in the listbox

and is there a way to display a double in exactly say 2 digits after the decimal point...

thanks


Answer this question

precision control