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.

25 lines
501 B

## Cut Corners
4 years ago
### 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
- [https://devdocs.io/javascript/global_objects/math](https://devdocs.io/javascript/global_objects/math)
4 years ago
### Code provided
```js
Math.round = Math.ceil = Math.floor = Math.trunc = undefined
```