Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Rounding (round)

Nearest whole number, with halves rounded away from zero.

How to write it

round(x)

x
A number. Takes a number.

Examples

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

    In the solver, round(2.4) gives 2.

    Open in the solver
  • round⁡(−2.5)=−3\displaystyle \operatorname{round}(-2.5) = -3
    round(-2.5)

    In the solver, round(-2.5) gives -3.

    Open in the solver
  • sign

    Sign of a number: -1, 0 or 1.

  • re

    Real part of a complex number.

  • sqrt

    Square root; sqrt(x) is the power x^(1/2).

  • quotient

    Whole-number quotient of a division, without the remainder.

  • subtract

    A difference: the function form of -.

  • power

    A power: the function form of ^.