Libraries Problems

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9

Rounding Numbers

Build the rest of this program by adding the needed blocks from the tray. This program should call two different round actions. The first will round 45.815173 to the nearest whole number. The second will round 45.815173 to the third decimal place. Finally, the program will output the rounded balues and should result in the following messages.

45.815173 rounded is 46.0
45.815173 rounded to the 3rd decimal place is 45.815

Coding:

Blocks

PreviousNext