HP-71 Reals Faster Than Integers
|
07-03-2024, 07:24 AM
Post: #5
|
|||
|
|||
RE: HP-71 Reals Faster Than Integers
(07-03-2024 03:46 AM)brouhaha Wrote: I haven't checked, but it's possible that all the calculations are done in floating point, and then converted to integers for storage. Float to int could perhaps be a bit slow, though int to float should be fast. But still, it's extra conversions. Yes, that's exactly the reason. All calculations on the HP-71 internal "Math Stack" (in RPN form) are done on floating point numbers. The HP-75, as I indicated several times, has a clever "fast integer processing" feature. When a REAL-type variable holds a integer value, then the calculations are done by integer routines, about 2x faster. Still, even on the HP-75, INTEGER- and SHORT-type variables are slower and must be used only to save RAM or disc space. J-F |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP-71 Reals Faster Than Integers - toml_12953 - 07-01-2024, 09:50 AM
RE: HP-71 Reals Faster Than Integers - RPNerd - 07-01-2024, 10:21 AM
RE: HP-71 Reals Faster Than Integers - brouhaha - 07-03-2024, 03:46 AM
RE: HP-71 Reals Faster Than Integers - J-F Garnier - 07-03-2024 07:24 AM
RE: HP-71 Reals Faster Than Integers - Paul Dale - 07-03-2024, 04:49 AM
|
User(s) browsing this thread: 1 Guest(s)