OS/2, eCS & ArcaOS - Technical > Programming

REXX programming question


Hi guys just a simple question. Is there a way in REXX to take a low order 32-bit value and a high 32-bit  and combine them? I want to combine the 2 32-bit values returned from Dos QuerySysInfo that contain the number of seconds from the system clock. I can get them separately and print them to the screen but I want to combine them into a single number even though right now the high-order word contains 0.

Wim Brul:
I tried this:

/* use 20 digits */
say 'digits='digits()
say 65536*65536*65536*65536
numeric digits 20
say 'digits='digits()
say 65536*65536*65536*65536



[0] Message Index

Go to full version