Swaps two words in a tag.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
Swap32 | Arithmetic | Synchronous | Supported | Supported | Supported |
Swap32( numValue )
Returns the numeric value after swapping the words.
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. |