kiban254
kiban254 kiban254
  • 01-05-2019
  • Computers and Technology
contestada

Which of the following evaluates to the variable x rounded to two decimal places?

A. round(x, 2)
B. round(2, x)
C. round(x), 2
D. round(2), x

Respuesta :

sylvain96
sylvain96 sylvain96
  • 11-05-2019

Answer:

A. round(x, 2)

Explanation:

It depends on the specific language you're using, but in most language it will follow the syntax round(x, 2).

In the first parameter you enter the value to be rounded (in this case 'x'), and in the second parameter you indicate how many decimals you want to have it rounded to (in this case '2').

Let's suppose we have number 34,54924 as x:

round(x,0) = 35

round(x,1) = 34,5

round(x,2) = 34,55

round(x,3) = 34,549

Answer Link

Otras preguntas

Which factors can result in mental disorders? Check all that apply. Genetics environment personal choice brain chemistry traumatic events
please respond asap!!!
How did Portugal's actions help cause civil war in Angola?​
which environmental changes occur fast A. global warming B. oil spill C. pond succession D. changing seasons
If John Needed 1000 Muffins a week for him party and Each person Ate 100 Muffins out of it how many would be left?
If my final exam is worth 7% if my grade and I have an 89 in the class how much will that effect my grade, If I get an 80 on the final?
Make sure to - when performing minor vehicle maintenance on your own
A person drove 36 miles per hour on a trip. If he had driven 48 miles per hour he would have arrived 4 hours earlier. What was the distance the person drove?
Choose the expression that is equivalent to the one shown. (82)5
write any two points to justify that urbanization brings energy crisis​