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

The u.s. army recruits soldiers based on the slogan, "army strong," implying that people can reach their full personal potential in the u.s. army. this is an ap
Please is my homework
How can I get the area of the shaded region?
If a coin is flipped 4 times what is the probability that a coin will land on heads 4 times
a. STOP: What is a technology habit you practice today that you now realize will not help you to be successful? Explain why it’s important to STOP doing this r
Carl reads for an average of 1hr25min each night. How many hours does he read in 4 weeks? Enter a mixed number.
Coupons in cereal boxes are numbered 1 through 5, and a set of one of each is required for a prize. with one coupon per box and the numbers uniformly distribute
help please I'm stuck
Increased food supplies in an ecosystem decrease competition because the competing organisms would?
What views did egyptians hold about their pharaohs?