abs(int8) returns int8?
I got a thought that throwing overflow exception is one of the right way. Thanks.
abs(int8) returns int8?
Thank you. I understood it is common spec for many languages and explicit casting is required for Nim.
abs(int8) returns int8?
According to the document, abs(int8) returns int8 but in the case of -128, abs(-128)=128 cannot stored into int8, right?