this is test code i did to find a problem
how wood I clean up the output like -0.90000000000001
Code: Select all
<?php
$WX['dew'] = '49.3';
$WX['RecentDewPoint m=60'] = '50.2';
if(isset($WX['RecentDewPoint m=60'])){$dewchangelasthour=$WX['dew']-$WX['RecentDewPoint m=60'];} // conditional value
print $dewchangelasthour;
?>