HP-16C simulator bug?
|
11-26-2024, 08:07 PM
(This post was last modified: 11-26-2024 08:08 PM by AnnoyedOne.)
Post: #1
|
|||
|
|||
HP-16C simulator bug?
Using the HP-16C simulator from
https://www.hpcalc.org/details/6047 I entered the two IEEE conversion programs from the manual (p116-118, PDF p118-120). The second (float to IEEE) returns the same results as the manual. However the first (IEEE to float) only does so for two of the three examples. 7F800000 returns 1.107296 '00 with C set. The manual says 9.999999 99 with C and G set. My real HP-16C returns the correct results for both programs. I verified the program/re-entered the program multiple times with the same result. Can anyone please confirm or otherwise a bug in this simulator? A1 HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
11-27-2024, 12:15 PM
Post: #2
|
|||
|
|||
RE: HP-16C simulator bug?
I figured it out. This simulator allows floating point numbers greater than 9.999999 99. For exponents greater than 99 a small '1' (it looks like a single quote) is shown instead of an overflow (like a real HP-16C). Hence no 'G' (overflow) flag.
Presumably the programmer used a 'double' to allow for the range of HP-16C floating point numbers but there is no "overflow/underflow" check so... I wish that a decent HP-16C (NUT code) emulator was available but this simulator will have to do for now. A1 HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
11-27-2024, 12:30 PM
Post: #3
|
|||
|
|||
RE: HP-16C simulator bug?
(11-27-2024 12:15 PM)AnnoyedOne Wrote: I wish that a decent HP-16C (NUT code) emulator was available but this simulator will have to do for now. The DM16L is a 16C emulator, running the original ROM, albeit not a free one. Today, it behaves exactly the same as a 16C, but it wouldn't be surprising if it behaved a little... well, better in the not too distant future... --Bob Prosperi |
|||
11-27-2024, 12:35 PM
Post: #4
|
|||
|
|||
RE: HP-16C simulator bug?
(11-27-2024 12:30 PM)rprosperi Wrote: The DM16L is a 16C emulator... Thanks, but I have a HP-15C CE that has 16C mode. I was using it yesterday with VoyagerSave. A PC emulator would be nice. A1 HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
11-27-2024, 06:38 PM
Post: #5
|
|||
|
|||
RE: HP-16C simulator bug?
HP-15C (2234A02xxx), HP-16C (2403A02xxx), HP-15C CE (9CJ323-03xxx), HP-20S (2844A16xxx), HP-12C+ (9CJ251) |
|||
11-27-2024, 07:55 PM
Post: #6
|
|||
|
|||
RE: HP-16C simulator bug?
(11-27-2024 12:15 PM)AnnoyedOne Wrote: I wish that a decent HP-16C (NUT code) emulator was available but this simulator will have to do for now. The Classic Nonpareil ? J-F |
|||
11-28-2024, 03:31 AM
(This post was last modified: 11-28-2024 12:10 PM by Thomas Klemm.)
Post: #7
|
|||
|
|||
RE: HP-16C simulator bug?
The following programs can be copied and pasted into the JRPN 16C simulator.
Program B Code: 001 { 43 22 B } g LBL B Examples HEX 80000000 -0. GSB B 0.000000 00 C set. HEX 7F800000 \(+\infty\). GSB B 9.999999 99 C and G set. HEX 00800000 \(2^{-126} \times (1.00\cdots00)\). 1.175494-38 HEX 3F800001 \(2^{0} \times (1.00\cdots01)=1+2^{-23}\). GSB B 1.000000 00 f CLEAR PREFIX 1000000119 Program A Code: 066 { 43 22 A } g LBL A Examples f FLOAT . 8 f EEX 72 GSB A 7F800000 h G set. Overflows to \(+\infty\). f FLOAT . 1.404 f EEX 45 CHS GSB A 1 h f FLOAT . 3.141592654 \(\pi\). GSB A 40490Fdb h |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)