Truncation
In mathematics and computer science, truncation is limiting the number of digits right of the decimal point.[src]
In mathematics and computer science, truncation is limiting the number of digits right of the decimal point.[src] \operatorname{trunc}(x,n) = \frac{\lfloor 10^n \cdot x \rfloor}{10^n}.[src] 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.[src] 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} .[src]
5 sentences · 5 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Truncation." encyclopegia.org, 2026, https://encyclopegia.org/wiki/truncation. Accessed 25 November 2026.
Chicago
"Truncation." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/truncation.
APA
encyclopegia.org. (2026). Truncation. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/truncation
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON