function roundDownToNearest100(num) {
return Math.floor(num / 100) * 100;
}
console.log(roundDownToNearest100(33));
console.log(roundDownToNearest100(159));
console.log(roundDownToNearest100(599.99));
console.log(roundDownToNearest100(43.14));
console.log(roundDownToNearest100(25));
console.log(roundDownToNearest100(419));
console.log(roundDownToNearest100(-12));
console.log(roundDownToNearest100(-101));
console.log(roundDownToNearest100(-199));
/*
run:
0
100
500
0
0
400
-100
-200
-200
*/