Post Reply 
Free42 pasted number bug
10-02-2020, 02:43 PM (This post was last modified: 10-14-2020 09:41 PM by Albert Chan.)
Post: #1
Free42 pasted number bug
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
Find all posts by this user
Quote this message in a reply
10-02-2020, 03:11 PM
Post: #2
RE: Free42 pasted number bug
Confirmed and noted!
I'll fix this in the next release.
Visit this user's website Find all posts by this user
Quote this message in a reply
10-14-2020, 09:12 PM
Post: #3
RE: Free42 pasted number bug
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.)
Visit this user's website Find all posts by this user
Quote this message in a reply
10-15-2020, 11:28 AM
Post: #4
RE: Free42 pasted number bug
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 ...
Find all posts by this user
Quote this message in a reply
10-15-2020, 12:46 PM
Post: #5
RE: Free42 pasted number bug
(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.

There are only 10 types of people in this world. Those who understand binary and those who don't.
Find all posts by this user
Quote this message in a reply
10-15-2020, 01:56 PM
Post: #6
RE: Free42 pasted number bug
(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.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-08-2023, 10:02 PM
Post: #7
RE: Free42 pasted number bug
(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.
Find all posts by this user
Quote this message in a reply
08-09-2023, 12:42 AM
Post: #8
RE: Free42 pasted number bug
(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.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
08-09-2023, 02:11 AM
Post: #9
RE: Free42 pasted number bug
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.
Find all posts by this user
Quote this message in a reply
08-09-2023, 02:26 AM
Post: #10
RE: Free42 pasted number bug
(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.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 




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