Post Reply 
An HP71 does not like F as a variable
12-13-2023, 01:04 PM
Post: #9
RE: An HP71 does not like F as a variable
(12-12-2023 08:53 PM)toml_12953 Wrote:  Does the HP71 have strict typing (an anathema to us old BASIC programmers)? If so then you can't assign a different type of data to a variable unless you re-initialize the variable in some way (in HP71-speak, DESTROY?)

If the HP71 is consistent, then this should throw an error instead of truncating or rounding:

INTEGER X
X=5.7

Doing that on a 71B does not show an error, it sets the value of X to be equal to 6 (the integer value closest to 5.7), which is a whole lot more useful than an error message. I don't think that's inconsistent, I think that was darned clever of the designers.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: An HP71 does not like F as a variable - rprosperi - 12-13-2023 01:04 PM



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