title: PowerShell Round & Format Float to max 2 decimals?
body: <p>I found lots of stuff to format floats to common known numbers,
  but how can I format a float to a max of 2 decimals, but only if the decimals are needed?</p>
  
  <p>Examples:</p>
  
  <pre><code>  1.11 # not 1.111
    1.12 # it was 1.116 (round up)
    1.1  # not 1.10
    1    # not 1.00
  </code></pre>
  
  <p>if I do</p>
  
  <pre><code>  $('{0:N2}' -f $flt)
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>  1.00 # :(
  </code></pre>
  
  <p>Thanks in advance!</p>