This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

trunc Operator

 13th June 2019 at 8:48am
purposetruncates a list of numbers to their integer part, removing any fractional part
inputa selection of titles
outputtruncates each of the input numbers to their integer part, removing any fractional part

Learn more about how to use Filters

Introduced in v5.1.20 See Mathematics Operators for an overview.

Tip
The trunc operator rounds towards zero. To round away from zero, use untrunc.

Examples