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

Express using egative exponents. 1/8
Based on the graph of kinetic energy given (gray curve in the graphing window), sketch a graph of the baseball's gravitational potential energy.
What plane contains points E, F, and H?
Which system cordinantes the human bodys response to change in its internal and external environment
according to the study, what did john steinbeck do to prepare for his book the grapes of wrath?
Which set contains only whole numbers divisible by 6? set W = {3.6, 6, 12, 34, 61, 92} set X = {19, 29, 44, 56, 83} set Y = {6, 24, 36, 78, 84} set Z = {1.2, 6
how do you ensure that your files are kept private on your computer
What kinds of asymptotes are possible for a rational function?
explain how there can be more heat energy in an iceberg than in a pot of boiling water
An EVEN number of negative signs results in a:__________________