ceiling和floor转化

\[\begin{array}{l}
ceiling(\frac{x}{y}) = floor(\frac{{x + (y - 1)}}{y})\\
floor(\frac{x}{y}) = ceiling(\frac{{x - (y - 1)}}{y})
\end{array}\]

posted @ 2019-08-18 18:19  jhc888007  阅读(198)  评论(0编辑  收藏  举报