Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

convert UInt64 negative to positive

$
0
0
Hi guys ,

variable X of type "UInt64" = negative value ..

How I can convert to positive value ??

I try to used
X = (-1) * X AND
X = convert.ToUInt64 (-1) * X ..
but the result other number "18446744073709541617" !!

thanks .

Viewing all articles
Browse latest Browse all 51036

Trending Articles



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