944,150 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1395
  • ASP.NET RSS
Feb 27th, 2006
0

Displaying fixed digits = 7 -> 007

Expand Post »
I want to format the number to display fixed digits, but the format code that I have seen doesn't have that option. I want to display the longitude of the cursor in DDD::MM:S form. I want to see 7 degrees as 007::00::00.

My code in VC++.NET (formatting is not included):
statusBarPanelLon->Text = String::Concat (degrees.ToString(), S"::" , minutes.ToString(), S"::", rndSecs.ToString());

My code will display 7 degrees as 7::0::0. I was hoping there is something available in .net to use so I won't have to manually concat zeros.

Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
DotNetUser is offline Offline
69 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: ASP.NET Import/Export
Next Thread in ASP.NET Forum Timeline: VS.Net compilation problem?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC