id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com fundamentals > fund_roundUp
prev  |  next  |  chance

Given a decimal number, round it up to the whole number below it. For example, 3.2 would be rounded up to 4.0. The Math class method Math.ceil(___) always rounds up. Note: Math.ceil returns a double.


fund_roundUp(1.1) → 2.0
fund_roundUp(1.5) → 2.0
fund_roundUp(1.7) → 2.0

...Save, Compile, Run (ctrl-enter)

public double fund_roundUp(double x) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy