You need to know what abs() means, because you need to apply the mathematical operation sometimes.
a) sometimes, you don't care about the sign, because you know, 100% sure, that the answer has to be positive (such as a person's height or age). Dealing with all positive numbers make calculations faster and writing clearer.
b) You need to plot the values of a quantity in logarithmic scale, and the quantity acquires a negative sign because of the measurement technique or the instrument's readouts. Computers cannot calculate the logarithm or square root of a negative number.
c) You don't want the program to bomb/abort when the square root or logarithm of a negative number during program executions.
d) The instrument is measuring a very small number and sometime the readout can turn negative but meaningless. Take the absolute value eliminates headaches of fautly arithmetic operations later.
===============================
Chat with our AI personalities
absolute value of 8 is 8.
You need to know the measure in order to answer the question.
The absolute value of an integer is the value of the integer without regard to its sign. The absolute value need not be an integer.
Yes it is and the absolute value is always a positive number. if it was the absolute number then the opposite, then its always a negative number. I learned this and im in the sixth grade advanced classes. * * * * * The absolute value need not always be positive - it can be 0. The absolute value need not be an integer. Rational and irrational fractions are perfectly valid.
The symbol for the operation of absolute value is |n| but I don't know why a common symbol is needed.....