V2EX  ›  英汉词典
Enqueued related words: Roundup

Ceil

定义 Definition

  1. (数学/编程)向上取整:把一个数变成不小于它的最小整数(常写作 ceil(x) 或 ⌈x⌉)。
  2. (较少用,动词)给……装天花板/做顶棚

发音 Pronunciation

/siːl/

例句 Examples

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) 来向上取整。

词源 Etymology

ceil(“做顶棚/装天花板”)多被认为是从 ceiling(天花板)逆构出来的动词;而 ceiling 又可追溯到古法语 ciel(“天空”),体现了“屋顶像天空一样覆盖在上方”的意象。数学/编程里的 ceil 则是“ceiling function(上取整函数)”的常用简称。

相关词 Related Words

文学与著作例证 Literary Works

  • Python Documentationmath.ceil()(Python 官方文档中常见)
  • C Standard Library / man pagesceil, ceilf, ceill(C 数学库参考文档中常见)
  • MDN Web DocsMath.ceil()(JavaScript 参考文档中常见)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4304 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 02:08 · PVG 10:08 · LAX 18:08 · JFK 21:08
♥ Do have faith in what you're doing.