HP Forums
Free42 pasted number 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: Free42 pasted number bug (/thread-15671.html)



Free42 pasted number bug - Albert Chan - 10-02-2020 02:43 PM

Free42 (2.5.17) counted leading zeros as significant.
Leading zeroes should be use only to adjust exponent.

Clipboard "0.0000000000000000000000000000000012345" pasted to Free42Decimal, got back "1.E-33"

Above "only" lose significant digits, this is more serious:

Clipboard " 00000000000000000000000000000000012345" pasted to Free42Decimal, got back "1"

lua> exp(-9)
0.00012340980408667956

Above value in clipboard, pasting to Free42Binary, we got back "0.000123409804086"

Unfortunately, even if the value already in scientific notation, we still unable to paste it exactly (bitwise).
The only option is split the numbers in half, pasted them, then add.
(I tried hex-float, but Free42 does not support it)

Would be nice is Free42Binary allow reading of 17 digits (or more) ... Smile

17 Digits Gets You There, Once You’ve Found Your Way


RE: Free42 pasted number bug - Thomas Okken - 10-02-2020 03:11 PM

Confirmed and noted!
I'll fix this in the next release.


RE: Free42 pasted number bug - Thomas Okken - 10-14-2020 09:12 PM

I posted a test build for Windows containing the Paste fix here.

(This also contains a few other new features, including ANUM, X<>F, and Stack Trace mode, that will be in the next release.)


RE: Free42 pasted number bug - Albert Chan - 10-15-2020 11:28 AM

Hi, Thomas Okken

Thank you ! The bug is gone.

Too bad I can't upgrade this to my WinXP box, "is not a valid Win32 application"

BTW, what is ANUM, X<>F, and Stack Trace mode ...


RE: Free42 pasted number bug - grsbanks - 10-15-2020 12:46 PM

(10-15-2020 11:28 AM)Albert Chan Wrote:  BTW, what is ANUM, X<>F, and Stack Trace mode ...

ANUM and X<>F are functions borrowed from the HP-41 X-Func module or from the HP-41CX.

ANUM looks for a numerical value in the alpha register and X<>F swaps the binary representation of flags 0-7 with the X register.

See p.12 and p.15 of the HP 82180A Extended Functions/Memory module manual.


RE: Free42 pasted number bug - Thomas Okken - 10-15-2020 01:56 PM

(10-15-2020 11:28 AM)Albert Chan Wrote:  Too bad I can't upgrade this to my WinXP box, "is not a valid Win32 application"

Yep. I had to upgrade to a newer version of Visual Studio a while ago, and the latest one no longer supports Windows XP in its runtime library. Given that Microsoft ended XP support in 2014, that doesn't seem unreasonable. Sorry!

(10-15-2020 11:28 AM)Albert Chan Wrote:  [...] Stack Trace mode ...

Set flags 15 & 16 and you'll get a special TRACE mode, which, instead of printing X after every instruction, prints the entire stack. This generates crazy amounts of output but it has already helped me debug a stackrobatics-heavy program once.


RE: Free42 pasted number bug - Albert Chan - 08-08-2023 10:02 PM

(10-02-2020 02:43 PM)Albert Chan Wrote:  Would be nice is Free42Binary allow reading of 17 digits (or more) ... Smile

17 Digits Gets You There, Once You’ve Found Your Way

Free42Binary (and Plus42Binary) will soon allowed for 17-digits SHOW and INPUT!

Binary float should then round-trip through a cut / paste.
(in other words, "Ctrl-C Ctrl-V −" should produced 0)

Patch was 3 days ago ... it will take some time for Free42/Plus42 to update.


RE: Free42 pasted number bug - rprosperi - 08-09-2023 12:42 AM

(08-08-2023 10:02 PM)Albert Chan Wrote:  
(10-02-2020 02:43 PM)Albert Chan Wrote:  Would be nice is Free42Binary allow reading of 17 digits (or more) ... Smile

17 Digits Gets You There, Once You’ve Found Your Way

Free42Binary (and Plus42Binary) will soon allowed for 17-digits SHOW and INPUT!

Binary float should then round-trip through a cut / paste.
(in other words, "Ctrl-C Ctrl-V −" should produced 0)

Patch was 3 days ago ... it will take some time for Free42/Plus42 to update.

Dude, folks peeking into someone else's unreleased git-stuff is obviously possible and allowed and comes with the turf if you develop that way, but it's not generally cool for the peeker to pre-announce what's coming without an OK from the author. If that was done, I do apologize for stepping in, but if not, I'll suggest you do that.


RE: Free42 pasted number bug - Albert Chan - 08-09-2023 02:11 AM

Hi, rprosperi

I am not just a "peeker of git-stuff".
This is a 3 years old pasted number bug, discovered by me, that finally got fixed.

Thomas Okken is not posting for months, I doubt he will announce it here.
Anyway, I will request an OK from the author, as you requested.


RE: Free42 pasted number bug - rprosperi - 08-09-2023 02:26 AM

(08-09-2023 02:11 AM)Albert Chan Wrote:  Hi, rprosperi

I am not just a "peeker of git-stuff".
This is a 3 years old pasted number bug, discovered by me, that finally got fixed.

Thomas Okken is not posting for months, I doubt he will announce it here.
Anyway, I will request an OK from the author, as you requested.

That's all I'm suggesting. Thanks.