title: PHP - How Compare Decimal Values
body: <p>I'm trying figure out how to compare decimal values in PHP properly.</p>
  
  <pre><code>$get_decimal_value = mysqli_query($conn, "SELECT DecimalValue FROM my_table WHERE Id = $some_id LIMIT 1")
  or die($db_conn_err);
  
  if(mysqli_num_rows($get_decimal_value) == 1 )
  {
      $row = mysqli_fetch_array($get_decimal_value);
      $my_decimal = $row['DecimalValue'];
  
      if($my_decimal &gt; 0)
      {
           // IS THIS CORRECT???
           // Does it need to be like '0.00' ?
           // it seems to work both ways...
      }
  }
  </code></pre>
  
  <p>Thank you!</p>