Murakoshi
Hello
please tell me.
Is "REAL_TO_DWORD" working properly?
As an example, when executing the following formula
DWORD: = REAL_TO_DWORD (REAL # 123.45);
The expected DWORD result is "DWORD # 16 # 42f6e666",
In fact, it was "DWORD # 10 # 123".

I want to convert a REAL variable to a DWORD and split the DWORD into two WORD types.

Thank you
Reply 0 0
thiagoralves
DWORD is a large integer. Converting a REAL number to a DWORD will just keep the integer part of your number
Reply 0 0
Murakoshi
Thank you for your reply.
It has the same meaning as cast in C.
Example "uint a = (uint) 1.5;"
Reply 0 0
Reply