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

On selling an article for Rs 329, a dealer lost 6%. The cost price of the article is ________
help please!!! due in an hour!
PLEASE HELP. The lengths of the sides of quadrilateral ABCD are equal. Prove that the perimeter of ABCD is equal to 4AB. GIVEN: AB BC BC &CD,CD = AD PROVE:
Help me................
Which is the value of this expresssion j=-2 and k= -1
See attachment with picture of question
a line has a slope of 1/2 and a y intercept of -2what is the the x intercept of the line?​
Plz help me and solve step by step Thank you.
The kinetic energy of an object increases as its ____ increases. Question 12 options: gravitational energy potential energy specific heat velocity
2. The greatest common factor of 8 and 12. a.) 2 c) 4 [Eb.) 4 4 d) 96 6.N