<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

```

console.log(Math.ceil(Math.random() * 100));

and console.log(Math.floor(Math.random() * 100));

`<do not remove the three backticks above>`

kyleaw
2
`Math.ceil`

takes a float/decimal and rounds up, `Math.floor`

takes a float and rounds down.

For example,

```
Math.ceil(4.4); //returns 5.0
Math.ceil(4.4); //returns 4.0
```

hope this helped,

1 Like

@kyleaw thanks for your help

system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.