it's not #.## but #0.00, through.
# is a optional digits placeholder(i.e.: has output only when it's a
significant digit), while 0 is arbitary (i.e.: it has output regardless of
whether it's significant or not.)
P.S.: the above paragraph requires you to treat 20 as ...0000020.0000...
where the empty place is in fact filled with 0.
"Stimp" <re*@spumco.com¼¶¼g©ó¶l¥ó·s»D:sl****************@m urphy.redbrick.dcu.ie...
There are many ways to string.Format:
string.Format("{0:###,###,###,##0.00;-#,###,###,##0.00;0.00}",
YourValue);
That actually doesn't work for what I needed though. I had tried it.
#.## only outputs 20 instead of "20.00" or 20.1 instead of "20.10" etc.
{0:f} is the best way to go.
--
fiddlewidawiddum