abs
Returns the absolute value of a number
abs<return_type>(a);
will return the absolute value of the argument (distance between the number and the number 0). The return_type specifies in which data type the result will be returned in, like shown in below example:
abs<int>(-15.43); //15
abs<float>(3.222223); //3.222223
abs<bool>(5); //1
------------------------
abs<char>(105); //'i'
Last updated