Post Reply 
Twos Complement
02-15-2023, 08:36 AM
Post: #3
RE: Twos Complement
(02-15-2023 07:58 AM)EdS2 Wrote:  Possibly the question is how to set the word width for binary or decimal numbers on the Prime... and I don't know the answer to that one.

Binary integer settings can be controlled via these system variables:

Bits := x, where 1≤x≤64, sets the binary integer word size.
Signed := 0 for unsigned (default)
Signed := 1 for signed
Base := 0 for binary
Base := 1 for octal
Base := 2 for decimal
Base := 3 for hexadecimal (default)

N.B. All of the above info is in the built-in Help system. Press Vars, [Home], Settings, Integer, then press Help after highlighting Base or Bits or Signed.

<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
Twos Complement - akmarul - 02-14-2023, 10:09 PM
RE: Twos Complement - EdS2 - 02-15-2023, 07:58 AM
RE: Twos Complement - Joe Horn - 02-15-2023 08:36 AM
RE: Twos Complement - gehakte_bits - 02-18-2023, 07:24 PM
RE: Twos Complement - phucshuhari - 04-04-2024, 07:39 AM
RE: Twos Complement - BruceH - 04-04-2024, 02:30 PM



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