title: What are precision and scale for numeric data types in Postgres?
body: <p>The documentation doesn't have examples.</p>
  
  <p><a href="https://www.postgresql.org/docs/10/datatype-numeric.html#DATATYPE-NUMERIC-TABLE" rel="noreferrer">https://www.postgresql.org/docs/10/datatype-numeric.html#DATATYPE-NUMERIC-TABLE</a></p>
  
  <p>NUMERIC(precision, scale)</p>
  
  <p>I want to use the smallest amount of space to save a positive number that will be at most 100 and I need to accept decimal increments of 0.5</p>
  
  <p>What precision and scale should I use in this case?</p>