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

does 20 hundredths equal 2 thousandths
write the ratio as a fraction in simplest form. 16ft to 6yd
what is the balanced chemical equation for caffeine?
The area of a square field is 200 square feet. What is the approximate length of each side of the field? Round your answer to the nearest foot.
If a=3 and b=5, what is the value of 3a + b to the power of 2?
Here is a sequence of shapes made from squares and circles. The sequence continues in the same way. The formula for the number of circles (c) in shape number (n
One of the heaviest rainfalls recorded in Greentown in a 24 hour period was 178.8 centimeters. If the rainfall was constant how many centimeters of rain fell du
A cable is lifting a construction worker and a crate. The weights of the worker and crate are 965 N and 1510 N, respectively. The acceleration of the cable is
What unions were open to African Americans in the 1920s?
Help me on this question plz plz