Marco
unread,Jun 13, 2002, 4:39:06 AM6/13/02You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello all,
I'm trying to create a string from a float with a specific format.
In particular I wanna a float with only the first to decimals. To this
goal I use an overload of the ToString method of class float that take
as parameter an object of a class that implements the IFormatProvider
Interface. So I use the class NumberFormatInfo to specify my
formatting requirements. NumberFormatInfo class has a property called
NumberDecimalDigits that I set to 2 before to pass the object to the
ToString method. Unfortunately this doesn't work so I'm looking for a
solution to the problem.
Can anyone out there gimme an advice?
TIA
Marco Paci