V2EX  ›  英汉词典

Round Function

释义 Definition

“round function”通常指四舍五入函数/取整函数:把一个数按规则取到最接近的整数(或指定的小数位)。在数学与编程中常见;不同语言/库对“.5”这类边界情况可能有不同规定(如“远离零取整”或“银行家舍入”)。

发音 Pronunciation (IPA)

/raʊnd ˈfʌŋkʃən/

例句 Examples

Please apply the round function to 3.6 to get an integer.
请对 3.6 使用四舍五入函数来得到一个整数。

In financial software, the round function must be consistent to avoid tiny errors accumulating over millions of transactions.
在金融软件中,取整函数必须保持一致,否则微小误差会在数百万笔交易中累积。

词源 Etymology

round 源自古英语 round(经由法语影响),本义与“圆、环形”相关,后引申出“使变圆/使成整、使成一个完整数”的概念。function 来自拉丁语 functio(“履行、执行”),在数学与计算机领域发展出“输入—输出规则/函数”的意义。合起来,“round function”即“执行取整规则的函数”。

相关词 Related Words

文学与著作中的用例 Literary / Notable Works

  • The C Programming Language(Kernighan & Ritchie):在讨论数学库与数值处理时常涉及“rounding/取整”相关函数。
  • The Art of Computer Programming(Donald E. Knuth):在数值计算与误差分析语境中讨论舍入(rounding)与相关函数思想。
  • IEEE 标准 IEEE 754 Floating-Point Arithmetic:系统性规定浮点数的舍入方式(rounding modes),与“round function”的行为密切相关。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   660 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 20ms · UTC 21:24 · PVG 05:24 · LAX 13:24 · JFK 16:24
♥ Do have faith in what you're doing.