e01.org

Truncation

Truncation is an encyclopedia record, sourced from en.wikipedia.org, last updated 2026-02-20, Wikidata item Q1171248, source revision https://en.wikipedia.org/w/index.php?oldid=1339355331. In mathematics and computer science, truncation is limiting the number of digits right of the decimal point. \operatorname{trunc (x,n) = \frac{\lfloor 10^n \cdot x \rfloor {10^n . However, for negative numbers truncation does not round in the same direction as the floor function: truncation always rounds toward zero, the \operatorname{floor function rounds towards negative infinity. For a given number x \in \mathbb{R _- , the function \operatorname{ceil is used instead \operatorname{trunc (x,n) = \frac{\lceil 10^n \cdot x \rceil {10^n. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

In mathematics and computer science, truncation is limiting the number of digits right of the decimal point. \operatorname{trunc}(x,n) = \frac{\lfloor 10^n \cdot x \rfloor}{10^n}. However, for negative numbers truncation does not round in the same direction as the floor function: truncation always rounds toward zero, the \operatorname{floor} function rounds towards negative infinity. For a given number x \in \mathbb{R}_- , the function \operatorname{ceil} is used instead \operatorname{trunc}(x,n) = \frac{\lceil 10^n \cdot x \rceil}{10^n} .

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Truncation". 1771551771. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1339355331

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·