Rounding

| Vector | C |
in the palette on the schematic

Performs rounding (accuracy limitation) of the input real number with user-defined accuracy. The block is vectorized and it is a submodel (assembly). To view the structure of the algorithm, right-click Actions → Enter to the submodel. The block operation algorithm implements the following formula:

where ui(t) is an element of the input vector, p is a parameter specifying the rounding accuracy, yi(t) is an element of the output vector.

Inputs

  • Input - input signal.

Outputs

  • Output - rounded output signal.

Properties:

  • Accuracy step – parameter p.

Parameters

none

Прим.:
  1. By default, the block generates a scalar output signal.
  2. Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.