title: Postman check for two decimal places for a number in a test
body: <p>The Situation I am running into is that I am doing a basic test and it appears the response.json() is truncating trailing zeros. As this is a money field, I would like to validate the response is sending those zero. Here is my example:</p>
  <p>Original Response:</p>
  <pre><code>    .
      .
      &quot;amount&quot;: 100.00,
      .
      .
  </code></pre>
  <p>After running the conversion:</p>
  <pre><code>    const responseJson = pm.response.json();
  </code></pre>
  <p>the line reads:</p>
  <pre><code>    .
      .
      &quot;amount&quot;:100,
      .
      .
  </code></pre>
  <p>I am no longer able to test if this originally had the two decimal places.</p>
  <p>For what it is worth, I started down the path of converting to string, but it is already truncated by the time it get to the pm.expect statement so I am not able to regex it.</p>
  <p>Any solutions other than trying to get originator of the api to return a string instead of a number (I don't like that for many reasons).</p>