ceil(x) 或 ⌈x⌉)。 /siːl/
Use ceil(2.3) and you get 3.
用 ceil(2.3) 会得到 3。
To avoid underestimating the number of pages, the program uses ceil(totalWords / wordsPerPage) to round up.
为避免低估页数,程序用 ceil(totalWords / wordsPerPage) 来向上取整。
ceil(“做顶棚/装天花板”)多被认为是从 ceiling(天花板)逆构出来的动词;而 ceiling 又可追溯到古法语 ciel(“天空”),体现了“屋顶像天空一样覆盖在上方”的意象。数学/编程里的 ceil 则是“ceiling function(上取整函数)”的常用简称。
math.ceil()(Python 官方文档中常见)ceil, ceilf, ceill(C 数学库参考文档中常见)Math.ceil()(JavaScript 参考文档中常见)