HP-16C simulator bug? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not quite HP Calculators - but related (/forum-8.html) +--- Thread: HP-16C simulator bug? (/thread-22770.html) |
HP-16C simulator bug? - AnnoyedOne - 11-26-2024 08:07 PM 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 RE: HP-16C simulator bug? - AnnoyedOne - 11-27-2024 12:15 PM 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 RE: HP-16C simulator bug? - rprosperi - 11-27-2024 12:30 PM (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... RE: HP-16C simulator bug? - AnnoyedOne - 11-27-2024 12:35 PM (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 RE: HP-16C simulator bug? - AnnoyedOne - 11-27-2024 06:38 PM FYI I've changed simulators again. From http://www.hp16c.org (no https) v2.1.0.036 A1 RE: HP-16C simulator bug? - J-F Garnier - 11-27-2024 07:55 PM (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 RE: HP-16C simulator bug? - Thomas Klemm - 11-28-2024 03:31 AM 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 |