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

Identify the descriptive adjective.Stumbling up the school steps, Kari fell or something.I think maybe it's "school" because school is describing the steps, but
mom paid $2.40 for a 3/4 pound of cereal, how much is that per pound
A function is given by a table of values,a graph, a formula, or a verbal description. Determine whether it is one to one.
In fruit flies, the gray body color (G) is dominant to the ebony body color (g). What is the genotypic ratio of the offspring of a heterozygous gray female
Suppose that x and y are related by the equation 2x^2-y^2=5 and use implicit differentation to determine dy/dx.
Solve. If a=5 , b=6, and c=7 . then a+b+(c)(1/c) =
What Numbers Go Into 515 ?
Why were 19 young women executed in 1692 in Salem Massachusetts?
helpp meeeeeeee plzz
Suppose that x and y are related by the equation 2x^2-y^2=5 and use implicit differentation to determine dy/dx.