Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Truncation (trunc)

A number with its fractional part cut off.

How to write it

trunc(x)

x
A number. Takes a number.

Examples

  • trunc⁡(−2.7)=−2\displaystyle \operatorname{trunc}(-2.7) = -2
    trunc(-2.7)

    In the solver, trunc(-2.7) gives -2.

    Open in the solver
  • abs

    Absolute value of a number, or modulus of a complex one.

  • times

    Product of numbers: the function form of *.

  • arg

    Argument of a complex number: its angle in radians.

  • subtract

    A difference: the function form of -.

  • binomial

    Binomial coefficient: the ways to choose k items out of n.

  • sqrt

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