179k views
0 votes
Math.round(math.abs(-4.7)


User Rutger
by
6.3k points

1 Answer

5 votes

The abs function gets the absolute value of -4.7, which is 4.7. Then the value is rounded to the nearest whole number, which is 5.

The correct answer is 5.

User Andy Brudtkuhl
by
6.4k points