Quantcast
Channel: Make a number ALWAYS negative in C#
Viewing all articles
Browse latest Browse all 5

Re: Make a number ALWAYS negative in C#

$
0
0

Hi,

If you want it to be negative whether it was negative beforehand or not, you would use:

abc = -Math.Abs(abc);

Viewing all articles
Browse latest Browse all 5

Trending Articles



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