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.
 
 
 
 
 
 
nprimo daa52c1fd8 docs(cut-corners): Clarify subject 2 years ago
..
README.md docs(cut-corners): Clarify subject 2 years ago

README.md

Cut Corners

Instructions

Create some functions which behave like JavaScript's Math rounding functions:

  • round: which behaves similar to Math.round().
  • ceil: which behaves similar to Math.ceil().
  • floor: which behaves similar to Math.floor().
  • trunc: which behaves similar to Math.trunc().

Some restrictions apply:

  • You may not use strings conversion to do it
  • No bitwise operator
  • No % operator

Notions

Code provided

The provided code will be added to your solution, and does not need to be submitted.

Math.round = Math.ceil = Math.floor = Math.trunc = undefined