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 should you record on a bibliographic card if you're using the index card organizational system
which number is 100 less then 38 tens
how did the Spanish organize and manage the new territory they claimed in the New World?
Add. Write your answer in simplest form. 4 6/7 + 3 5/7=____
You roll a standard number cube. Find P(odd). A) 5/6 B) 1/3 C) 2/3 D) 1/2
What is the value of x? Two lines, labeled m and n, that are parallel to each other. A transversal, labeled t, passes through lines m and n. Four angles are cre
Which group most frequently benefits from Political Action Committee (PAC) donations?
What factors caused the Great Depression to spread around the world? Check all that apply.
Which words make up the compound direct object in the sentence? Katy fed milk and honey to the newborn colt each morning. Choose all answers that are correct. A
What would happen if a freshwater fish didn't produce lots of watery urine?