function roundUpToNearest100(num : number) : number {
return Math.ceil(num / 100) * 100;
}
console.log(roundUpToNearest100(222));
console.log(roundUpToNearest100(779));
console.log(roundUpToNearest100(399.99));
console.log(roundUpToNearest100(55.17));
console.log(roundUpToNearest100(3));
console.log(roundUpToNearest100(18));
console.log(roundUpToNearest100(-14));
console.log(roundUpToNearest100(-1001));
console.log(roundUpToNearest100(-1999));
/*
run:
300
800
400
100
100
100
0
-1000
-1900
*/