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

Solve for x by using the quadratic formula X^2+3x+2=0
Select the correctly punctuated sentence. Though many believed Doug Williams had excellent taste, William's choice of television program didn't agree with the
What is the value of k? 2k+9=7−3k
Which text synopsis is most likely a narrative? A. A poet's twelfth sonnet, written on the topic of his lover's hair B. A practical guide to helping your
Who is the best known Christian humanist, and what did he believe
in England mass is measured in units called stones. one pound equals 1/14 of a stone. a cat weighs 3/4. how many pounds does a cat weigh.
when was kevin costner born
Which food has the highest number of calories?
The best way to ensure parallel construction in your essay is to use similarA. topic headings in your outline.B. details in each paragraph.C. sentence structure
52,789 rounded to nearest thousand