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

 

abraskin@mbusd.org 2016_student_creations_01 > roundStuff
prev  |  next  |  chance

round the numbers to a specified number ex: 123.456789 rounded to 2 decimal points becomes 123.46


roundStuff(123.456789, 2) → 123.46
roundStuff(1423.5123, 4) → 1423.5123
roundStuff(127834.21, 1) → 127834.2

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

public double roundStuff(double d, int i) { }

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

Difficulty: 250 Post-solution available

Copyright Nick Parlante 2017 - privacy