Post Reply 
Integer Confusion and :
01-25-2017, 03:54 PM
Post: #1
Integer Confusion and :
All this talking about random numbers has made me want to port the Marsenne twister to HP-PPL. Most algorithms use bit twiddling and 32 bit integers.

Given the "binary explorer" I assume that most numbers are 64 bit. Is there a way to declare a 32 bit variable/number? I see the intriguing ':' operator, but as far as I could tell, it is undocumented. (It was a bit tedious searching the manual for ':' - whoever wrote the manual sure likes his colons!)

I also see the SETBITS() command. Can I use that on a variable to make it 32 bits?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Integer Confusion and : - KeithB - 01-25-2017 03:54 PM
RE: Integer Confusion and : - Han - 01-25-2017, 04:18 PM
RE: Integer Confusion and : - KeithB - 01-25-2017, 04:37 PM
RE: Integer Confusion and : - Han - 01-25-2017, 07:01 PM
RE: Integer Confusion and : - Tim Wessman - 01-25-2017, 06:02 PM
RE: Integer Confusion and : - KeithB - 01-25-2017, 06:28 PM
RE: Integer Confusion and : - mark4flies - 01-26-2017, 01:30 AM
RE: Integer Confusion and : - KeithB - 01-26-2017, 05:03 PM



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