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

Can someone help me please
PLEASE HELP IMA GIVE BRAINLIST
What is the amount in the account that compounds Once a Year after five years?
Arco Corporation declared a cash dividend on June 2 of $6 per common share. The company has 2,000 shares of common stock authorized, 1,000 shares issued, and 20
A uniform solid disk has a mass of 1.00 kg and a radius of 1.00 m. The disk is mounted on frictionless bearings and is used as a turntable. The turntable is ini
How many sides does a regular polygon have if the measure of each exterior angle is 24°?​
Which of the following is the best definition of concept? Group of answer choices a rule of thumb for solving problems or making judgments a mental category use
what is the unit of time​
What are the causes of flooding in Nigeria?
1. Why was the 1915 silent film The Birth of a Nation seen as promoting the Ku Klux Klan? A) The good characters are played by actual KKK members. B) The KKK ha