Which Math method is used to calculate the absolute value of a number

The abs() method is used to calculate absolute values.

Showing Answers 1 - 3 of 3 Answers

To returns the absolute value of a specified number we use the method abs(x).
Example:
int value1 = -1000;
int abs1 = Math.Abs(value1);

output will be 1000 which is an absolute value.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions