#

# LogiView

## Function 'trunc'

| This function returns the integer portion of a numeric expression.
| ### Syntax:
| {INT_VAR}= trunc({NUM_EXPR})
| ### I/O parameters:
| {NUM_EXPR} | Value to be processed.
| - |
| ### Return value:
| {INT_VAR} | Integer portion.
| ### Example:
| Declaration of Variables
     10   ask(DOCU_FLOAT_1,"Please enter a value!")
     20   if (DOCU_FLOAT_1 != trunc(DOCU_FLOAT_1))
     30     put("Only integer values are permitted!")
     40 C   -- Recursive procedure call
     50     DocuProcedure()
     60   endif
| Result: (DOCU_FLOAT_1 = 9,8765)
| Functions and commands: Type Conversion