I forgot the function in Java to calculate the value of an integer. please, help..
| 5 | = +5 = 5
| -5 | = +5 = 5
therefore, if a - b - x
mag (a - b) represents the x number of posts.
I believe you are looking for Math.abs () . Using this function:
5 = Math.abs(5) = Math.abs(-5)
Try Math.abs .
abs(-4) = 4; abs(5) = 5;
The function in the Math library is called abs() (short for "absolute value").
abs()
Math.abs () is the function you are looking for.
Source: https://habr.com/ru/post/1401431/More articles:Parameters of a virtual function that are not used in all subclasses; any better way to design? - c ++Add font family to resourceDictionary - c #How to convert non english text to uppercase in vim? - vimRail drying in route spaces - namespacesMaximum screen capture size (memory buffer) - iphoneCreating Objects in VBA and VBS - vbaYii can't start gii - redirectUse stacktrace properly for debugging - stack-traceErrors not detected by Global.asax? - c #better understanding of racing design conditions - javaAll Articles