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

Solve for x Answer choices: 4 5 8 3 2
Explain why a car is an economic good
what is hiberbation?​
alguien que me pueda ayudar a hacer mi tarea !!!!d. En la granja de Don José debe entregar 325, 56 Kg de maiz para alimenter sus animales, pero recibieron ¿cuán
PLEASE HELP 100 POINTS AND WILL MARK AS BRAINLEST Read the following passage from Mulr's "Calypso Borealis and respond to the prompt. 15] How long I sat beside
Solids have_____ density and_____ compressibility compared to liquids.
I need help ASAP!!!!!! Please tell me how u got your answer
Find the measure of the missing angle. 156° a =
Find the area of the region bounded by y=1/x^2,y=4, and x=5. Use dy to differentiate and/or integrate.
express 0·4393939... as a fraction in its lowest term