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. 8/x = 5/9 PLEASE ANSWER !!☹️
Plssssssssssss helppppppp
1/5 divided by 7/3????
Social media has really influenced how people have access to news. Give three ways this medium for news has influenced the news.
What are the goals of psychology? a) to explore the conscious and unconscious functions of the human mind b) to understand, compare, and analyze human behav
Need help I don’t understand new topic answers please
What are the similarities between horror movies and romantic comedy’s
2.) The federal system refers to the of power between the national and state governments.
• Which statements are true about the expression x + 7? Choose ALL that apply. ) The letter x is a variable. 1) The number 7 is a variable. -)) The letter is a
What is the premium for $75,000 for a 33 year old female, for a 20-year policy? A) $286.50 B) $587.25 C) $594.75 D) $1415.25