Welcome to Dream.In.Code
Become a C# Expert!

Join 150,115 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,953 people online right now. Registration is fast and FREE... Join Now!




ToString

 
Reply to this topicStart new topic

ToString, General

usamamuneeb
14 Nov, 2008 - 03:46 AM
Post #1

D.I.C Head
**

Joined: 4 Sep, 2008
Posts: 82


My Contributions
When the Math.PI.ToString("G3") method is called, it returns a value of 3.142E+000. When the same is tried with G2, 3.14E+000 is returned. When the 12345678.9.ToString("G3") method is called, it returns a value of 1.23E+07. When the same is tried with G2, 1.2E+07 is returned. When the 55.ToString("G3") method is called, it returns a value of 55. When the same is tried with G2, 55 is returned. What is General actually doing to the number?
User is offlineProfile CardPM
+Quote Post

JackOfAllTrades
RE: ToString
14 Nov, 2008 - 04:04 AM
Post #2

Cantankerous Old Fart
Group Icon

Joined: 23 Aug, 2008
Posts: 862



Thanked: 89 times
Dream Kudos: 50
My Contributions
It's in the manual
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 01:09AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month