跳转到内容

This page is also in English.

Read it in English

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

四舍五入(Rounding,round)

最接近的整数,恰为半时向远离零的方向舍入。

怎么写

round(x)

x
一个数。接受一个数。

示例

  • round⁡(2.4)=2\displaystyle \operatorname{round}(2.4) = 2
    round(2.4)

    在求解器中,round(2.4) 的结果是 2。

    在求解器中打开
  • round⁡(−2.5)=−3\displaystyle \operatorname{round}(-2.5) = -3
    round(-2.5)

    在求解器中,round(-2.5) 的结果是 -3。

    在求解器中打开
  • sign

    数的符号:-1、0 或 1。

  • re

    复数的实部。

  • sqrt

    平方根;sqrt(x) 即幂 x^(1/2)。

  • quotient

    除法的整数商,不含余数。

  • subtract

    差:- 的函数形式。

  • power

    幂:^ 的函数形式。