is there any way to get absolute value from an integer?
for example

-8  
to  
 8

I already tried to use UInt() assuming it will convert the Int to unsigned value but it didn’t work.

4 Answers
4

Leave a Reply

Your email address will not be published. Required fields are marked *