omron — Trunc

Appendix: Built-in Scripting Language Examples Trunc Truncates the value of numValue . Syntax Trunc( numValue ) numValue Real tag to be truncated. Returned value Returns the integer portion of the real number value of numValue . Examples Page 454 InduSoft Web Studio Tag Name Expression Tag Swap32( 16 ) // 16 = 00000000000000000000000000010000 in binary. Returned value = 1048576 = 00000000000100000000000000000000 in binary. Tag Swap32( 246333120 ) // 286333120 = 1010101010101010101111111100000000 in binary. Returned value = -1094709586= 11111111000000001010101010101010 in binary.

Function Group Execution Windows Embedded Thin Client Trunc Arithmetic Synchronous Supported Supported Supported Tag Name Expression Trunc( 234.987 ) // Returned value = 234 Trunc( -3465.9 ) // Returned value = -3465