Post Reply 
An HP71 does not like F as a variable
12-12-2023, 08:53 PM
Post: #8
RE: An HP71 does not like F as a variable
(12-12-2023 09:49 AM)Paul Dale Wrote:  I agree that assigning the scalar to the entire array isn't sensible. However, F=2 should replace the array with a scalar.

The praxis of "least surprise" really ought to apply.


Pauli

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

See the bottom of page 59 of this document:
https://holyjoe.net/HP71/HP71BME.pdf

Tom L
Cui bono?
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 - toml_12953 - 12-12-2023 08:53 PM



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