function roundDownToNearest100(num) {
return Math.floor(num / 100) * 100;
}
console.log(roundDownToNearest100(773));
console.log(roundDownToNearest100(899));
console.log(roundDownToNearest100(999.99));
console.log(roundDownToNearest100(99.197));
console.log(roundDownToNearest100(6));
console.log(roundDownToNearest100(15));
console.log(roundDownToNearest100(-19));
console.log(roundDownToNearest100(-103));
console.log(roundDownToNearest100(-199));
/*
run:
700
800
900
0
0
0
-100
-200
-200
*/