View Single Post
Old 27-Feb-2007, 04:13 AM   #1 (permalink)
Sangeetha
Fixed Error!
 
Sangeetha's Avatar

Posts: 139
Location: Chennai
Join Date: Feb 2007
Rep Power: 2 Sangeetha is on a distinguished road

IM:
Default Format to 2 decimal places

Question: How do I format the following timespan object to 2 decimal places?

My code below is outputting "0.2333333333337" but I need to simply output "0.23"

lbl.Text = String.Format("{0:#.##}", ts.TotalMinutes.ToString)
Sangeetha is offline   Reply With Quote