Rounding input numbers

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by vinayak on Wed, 01/06/2016 - 21:33 

 

 

This should be simple but could not see any block for this in Vissim. I need to round numbers to 2 decimal places. What function/ block should I use? Example 1/3 = 0.33333 should convert to 0.33 This is not for display but for actual use in the input. Thanks, VG

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by pete on Sun, 01/10/2016 - 22:42.

    Hi Vinayak, The block you are looking for is the quantize block. You can find it under Blocks > Nonlinear . See example below:

    quantizeDiagram (1).png

    You set the measurement resolution (quantum) in the properties screen for the quantize block as below:
    quantizeProperties.png