Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 12890

subtract negative number given positive number

$
0
0

I am trying to subtract 2 items  rev - cost. But some cost are negative numbers and therefore and therefore causing

rev- (-cost) becoming rev+ cost causing big number answers.

0- (-cost) becoming rev+ cost 

 -rev - (-cost) becoming rev+ cost .

Any way to solve this issues.


Viewing all articles
Browse latest Browse all 12890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>