What is the use of truncate function in vDesigner 2

and how to configure it?

@Anuj_Tiwari
The truncate function in vDesigner 2 is used to remove the fractional (decimal) part of a number, leaving only the integer part. It does so without rounding the number, meaning it simply cuts off the digits after the decimal point.

Key Points:

  • It returns the integer portion of the number.
  • Works for both positive and negative numbers.
  • Example of behavior:
    • truncate(4.8) → 4
    • truncate(-4.8) → -4
1 Like