want to convert negative number to positive
<p>I have a below query which I have used this in a procedure and want to convert one number into positive as right now it is negative.</p>

<pre><code> UPDATE SHIPMENT
        SET TOTAL_SHIP_UNIT_COUNT = (
          CASE
            WHEN V_SHIP_UNIT_COUNT &gt; v_diff_cost
            THEN V_SHIP_UNIT_COUNT - v_diff_cost
            ELSE v_diff_cost       - V_SHIP_UNIT_COUNT
          END)
        WHERE SHIPMENT_GID = v_shipment_id;
        COMMIT;
</code></pre>

<p>in this query v_diff_cost value is negative so while performing <code>( V_SHIP_UNIT_COUNT - v_diff_cost)</code> action it is adding both the values so if I will convert <code>v_diff_cost</code> value to positive then while subtracting it will give me the right result.</p>

<p>Suppose <code>V_SHIP_UNIT_COUNT</code> value is 33 and <code>v_diff_cost value</code> is -10 then in this case it should perform the action as <code>33-10 = 23</code> but it is doing as <code>33-(-10)= 43</code> and this should not happen.</p>

<p>kindly help me out.
Thanks</p>