title: String format in wpf
body: <p>I have a <code>TextBox</code> on <code>WPF</code> that is related to the float variable in my model</p>
  
  <p>Following the TextxBox:</p>
  
  <pre><code> &lt;TextBox Text="{Binding Position, StringFormat=f4}"/&gt;
  </code></pre>
  
  <p>I want that TextBox will display a maximum 4 numbers after the point.</p>
  
  <p>So I put <code>StringFormat=f4</code>.</p>
  
  <p>But now, even when I have less than 4 numbers after the point and when I have a whole number it displays with 4 digits after the point.</p>
  
  <p><strong>For example, the number 0 is shows that: 0.0000</strong></p>
  
  <p>I want as long as it did not pass the four numbers, display it in a normal way, how can I do this?</p>