Could reduce to 2 statements, does not seem any better ...
$nwt = abs( $wt ); $total = ( $nwt < $min ? $min : $nwt ) * $price * ( $wt < 0 ? -1 : 1 ) ;
In reply to Re: Some simple math and absolute values
by parv
in thread Some simple math and absolute values
by sidmuchrock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |