in reply to Re: Some simple math and absolute valuesin thread Some simple math and absolute values
$total = ($wt || $min) * $price; $total = $total/abs($total) * $price * $min if abs($wt) < $min +; [download]