about | help | code help+videos | done | prefs |
Write the method that will round decimal numbers to the desired degree of accuracy. Create a method roundOffWhole that takes a "double" number (floating point) and an integer of accuracy (representing the whole number accuracy) and returns a integer value that represents the given double rounded. If 16.0 and 10 is entered - the result would be 20 roundOffWhole(16.0, 10) → 20 roundOffWhole(14.0, 10) → 10 roundOffWhole(99.0, 100) → 100 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy