simlogo1

 

 

 

SimQuest 6.4 help

 

 

Truncated

 

When applied to a number or an array of numbers, Truncated produces an integer by rounding the number towards zero or an array each element of which is the integer obtained by rounding towards zero the corresponding element of the input array, respectively.
It has two variables: in and out.

 

Structure (for scalars):

       in becomes in rounded towards zero

 

Example:

       2.5 becomes 2

       -5.1 becomes -5

       (2.5, -5.1) becomes (2, -5)

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011