function roundDownToNearest100(num : number) : number {
return Math.floor(num / 100) * 100;
}
console.log(roundDownToNearest100(222));
console.log(roundDownToNearest100(779));
console.log(roundDownToNearest100(399.99));
console.log(roundDownToNearest100(55.17));
console.log(roundDownToNearest100(3));
console.log(roundDownToNearest100(18));
console.log(roundDownToNearest100(-14));
console.log(roundDownToNearest100(-1001));
console.log(roundDownToNearest100(-1999));
/*
run:
200
700
300
0
0
0
-100
-1100
-2000
*/