The browser storage localStorage is not available. Either your browser does not support it or you have disabled it or the maximum memory size is exceeded. Without localStorage your solutions will not be stored.


If you want to round a number, you can use the Math.round(), Math.floor() and Math.ceil() functions.
var a = Math.round(5.49);
var b = Math.round(4.5);
var c = Math.floor(5.99);
var d = Math.ceil(4.01);
Math.round() rounds a number to the nearest integer, Math.floor() rounds a number downwards to the nearest integer and Math.ceil() rounds a number upwards to the nearest integer. Therefore, the variables a to d all get the value 5.


Write a function round100 that rounds a number to the nearest hundred. round100(1749) should return 1700 and round100(856.12) should return 900.