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

Communication is the transmission of information and meaning from one individual or group to another. The central objective of communication is to transmit mean
Which statement explain how producers are dependent upon consumers for the ir survival
What 4 things can affect the way enzymes work? Explain how each thing affects an enzyme.
Which of these statements is true about the Gentlemen's Agreement of 1907?
I would like to know the answer of this unit.
list any four mitigating measures of human created disasters​
NUMBER 16 HELP PLZ 8TH GRADE
After the professional fit test, workers must wear only the type and size mask approved by the fit tester. a. True b. False
anwer of 2cos60°sin30°
helppppppppppppppp meee