title: Excel Custom Format: How to set a format that handles numbers with optional decimals
body: <p>I'm having some trouble with Excel formats:</p>
  
  <p>Example:</p>
  
  <p>Value: 13<br>
  Expected result: 13 (not <strong>13.</strong> )<br>
  Value: 13.5<br>
  Expected result: 13.5 <br>
  Value: 13.1234<br>
  Expected result: 13.1234<br></p>
  
  <p>Right now I'm using <strong>#.#</strong> format, but for the first value it always formats with the <strong>.</strong> character at the end. Any ideas?</p>
  
  <p>Edit:
  We need to have this working for different number formats (%, $, etc). So we have the some additional examples:</p>
  
  <p>Value: 13<br>
  Expected result: $13 (not <strong>$13.</strong> )<br>
  Value: $13.5<br>
  Expected result: $13.5 <br>
  Value: $13.1234<br>
  Expected result: $13.1234<br></p>