Post Reply 
Output from WAIT(-1)
01-08-2021, 10:20 PM
Post: #4
RE: Output from WAIT(-1)
(01-08-2021 04:55 PM)cahlucas Wrote:  Dear Mr. Horn,
The explanation you have given is very clear. What I can't understand is why the x and y values are returned as a signed number when it is set in home settings that no signed numbers should be used. There are no negative values themselves in the x and y values. And how can I get rid of that word size, if I only need the binary values of x and y? Sincerely, Karel.

Question #1: Your Home Setting does NOT mean that no signed numbers should be used; it means that when you ENTER binary integers from the keyboard, or when you obtain binary integers as the result of a calculation, THEN what you get are unsigned. That's different from the binary integers you obtain from some functions which always return them with a specific word size and/or signed/unsigned.

For example, type TOff or TDim in Home (be sure to type the letters exactly as shown, with the first two letters uppercase and the next two letters lowercase). You'll always obtain unsigned 30-bit numbers, no matter what your Home Settings are for binary integers.

Question #2: You ask how to get rid of that word size. The answer is simple: Don't. There is no need to get rid of it. Just use the result as-is, or convert it to a real number using the B→R function. What appears after the colon is merely information for you. If you don't need that information, ignore it.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Output from WAIT(-1) - cahlucas - 01-06-2021, 09:57 PM
RE: Output from WAIT(-1) - Joe Horn - 01-07-2021, 04:54 AM
RE: Output from WAIT(-1) - cahlucas - 01-08-2021, 04:55 PM
RE: Output from WAIT(-1) - Joe Horn - 01-08-2021 10:20 PM
RE: Output from WAIT(-1) - cahlucas - 01-09-2021, 06:14 PM
RE: Output from WAIT(-1) - cahlucas - 01-09-2021, 09:36 PM



User(s) browsing this thread: 3 Guest(s)