General

General

Why are my Parameters in the Expressions of the Workbench Platform Parameter Manager wrongly evaluated?

    • FAQFAQ
      Participant

      The following functions that can be used in Workbench expression are designed to perform on number argument. Although there is no warning/error given when they are used on quantities, the result returned by the functions can implicitly depends on project unit system and can sometimes be unexpected. int nint abs fabs sign ceil floor round trunc Suggested way to applying these functions on quantities is to convert between quantity and number before and after calling the functions, so to get a definite result. For example, suppose a length parameter P1 has value 97.5 [mm], instead of calling round(P1) a reliable way would be: round(P1/1[mm])*1[mm]