title: Different behavior for decimal.ToString
body: <p>I've encountered a very strange behavior of <code>decimal.ToString</code>:
  First Case:
  <a href="https://i.stack.imgur.com/Ognkb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ognkb.jpg" alt="enter image description here"></a></p>
  
  <p>You can see that variable <code>ValueFloat = 9</code> and <code>ValueFloat.Value.ToString("G") = "9"</code>.</p>
  
  <p>Second Case:</p>
  
  <p><a href="https://i.stack.imgur.com/q7Na4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q7Na4.jpg" alt="enter image description here"></a></p>
  
  <p>You can see that variable <code>ValueFloat = 9</code> and <code>ValueFloat.Value.ToString("G") = "9.000000000000000".</code></p>
  
  <p>Now, how is it possible? Variable ValueFloat has the same value in both cases.</p>
  
  <p>I had an assumption that it might be connected to culture, but in both cases the code runs on my local machine, which has the same culture obviously.</p>