mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
579 B
579 B
Cut Corners
Instructions
Create a function for each rounding math functions:
- round (like
Math.round
) - ceil (like
Math.ceil
) - floor (like
Math.floor
) - trunc (like
Math.trunc
)
Some restrictions apply:
- You may not use strings conversion to do it
- No bitwise operator
Notions
Code provided
all code provided will be added to your solution and doesn't need to be submited.
Math.round = Math.ceil = Math.floor = Math.trunc = undefined