# Analysis of the difference between JavaScript divisible operation functions ceil and floor

- 2020-05-27 04:25:52
- OfStack

This paper analyzes the difference between JavaScript divisible operation functions ceil and floor with an example. Share with you for your reference. The specific analysis is as follows:

```
Math.ceil(count / pagesize);
// Up divisible, such as Math.ceil(4/3) The results for 2;
Math.floor(count / pagesize);
// Downward divisible, as Math.floor(4/3) The results for 1;
```

I hope this article has been helpful to your javascript programming.