JS
(quick guide & examples)
THE NUMBER var num = 11.23;
FLOOR - ALWAYS ROUND DOWN console.log(Math.floor(num)); // 11
ROUND OFF console.log(Math.round(num)); // 11
CEILING - ALWAYS ROUND UP console.log(Math.ceil(num)); // 12
TRUNCATE - DROP DECIMALS console.log(Math.trunc(num)); // 11
THE NUMBER var num = 11.237;
ROUND OFF num = Math.round(num);
MULTIPLIER, 2 DECIMAL PLACES = 100 num = num * 100;
REVERT MULTIPLIER num = num / 100;