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

What is the sum of these solutions to the given equation (3x-6)(x-4)(x-8)=0
find the slope please
please show steps!1​
The triangular prism shown below is 6cm, wide and 4cm deep. The vertical height is 7cm. What is the length of the side edge, s, of the triangular prism? Round y
Which two particles of the atom have nearly identical masses?.
Explain the difference between a polar bond and a polar molecule.
you guys might be getting sick of me but I need to know when the lead rope for horses were invented and how they changed over time? You guys helped me so much!!
Water, wind, gravity, glaciers, and waves are all agents of Erosion. A. TRUE B. False
Proteins to be secreted outside the cell are formed at ribosomes on the surface of the ______ endoplasmic reticulum.
Which fossil fuel is used to make plastics, Vaseline, and even things like lipstick?