Thread
:
Format to 2 decimal places
View Single Post
27-Feb-2007, 04:13 AM
#
1
(
permalink
)
Sangeetha
Fixed Error!
Posts
: 139
Location
: Chennai
Join Date
: Feb 2007
Rep Power:
2
IM:
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
View Public Profile
Find More Posts by Sangeetha