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

100 POINTS IF U GET THIS RIGHT!
How has judicial restraint impacted the courts?.
Which of the following are remote interior angles of <5? Check all that apply. A. <5 B. <1 C. <2 D. <3 E. <6 F. <4
What problems did the constitution solve.
[tex]1. \: \: \: \: \: x - 3 = x + 5[/tex][tex]2. \: \: \: \: x - 3 = 2x \times 5[/tex]Solve for x..​
evaluate 5c-3d+11 when c=7 and d=8
50 POINTS BRAINLIEST FOR FIRST CORRECT ANSWER In the unit and the video, you learned about how some cultures don't value education for girls in the same manner
What are symptoms of ms related sleep paralysis.
Which line is written in iambic tetrameter? I plan to eat a healthy breakfast. I brush my teeth first thing in the morning. I try to fall asleep by ten. I neve
PLZZ Help In School Now Explain how the Bourbon Triumvirate impacted the transition from Reconstruction to the New South era in 3 to 5 sentences.