Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

trunc float

trunc is NOT undoable, NOT queryable, and NOT editable.

Returns the largest whole value that is not greater than the argument.

Return value

floatTruncated value

Related

ceil, floor

MEL examples

trunc 2.82;
// Result: 2 //
trunc -2.82;
// Result: -2 //