title: Float to String Conversion
body: <p>I want to convert float value to string.</p>
  
  <p>Below is the code which i am using for the conversion. </p>
  
  <pre><code>static void Main(string[] args)
          {
              string s =string.Format("{0:G}", value);                
              Console.Write(s);
              Console.ReadLine();
          }
  </code></pre>
  
  <p>and it outputs as <code>2.5</code></p>
  
  <p>But my problem is i want to get the value as <code>2.50</code> because i want to compare it with original value later in my project.</p>
  
  <p>so please suggest me if there are any ways to do it?</p>