Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 QCL,并且出现了一些关于内部功能的问题。我想知道运营商floor(something)是什么ceil(something)。我知道它们与数学运算有关,但它们究竟是做什么的?
floor(something)
ceil(something)
Floor 删除小数点, ceil 将小数部分变为 .9999,如果它已经存在则重复(与整数相同)。
所以 floor(4.6) 失去 0.6,ceil(4.6) 变为 4.9999... 或 5。此外,ceil(5.0) 将返回 5,因为小数部分为 0。