Displaying numbers

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 2:48 pm
Location: Nuremberg, Germany

Displaying numbers

Post by Krauts In Space » Tue Feb 27, 2018 9:33 am

With FIX I can determine how many digits after the decimal point/comma I want to have displayed.
FIX 00 - none
FIX 01 - one
and so on
This goes fine as long as the mantissa is less or equal than 12.
Entering 1.23456789012
FIX 11:
Mantissa: 1.23456789012
Adding 10
Mantissa: 11.2345678901
(10 digits after decimal point - not as expected by me)
FIX 03:
Mantissa: 11.235
(3 digits after decimal point - as expected)

I don't have my HP42S with me, so I can't check if this is the original behaviour.
Can anyone confirm if the 42s also works this way?
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5

Thomas Okken
Posts: 713
Joined: Tue May 02, 2017 3:48 pm
Location: United States
Contact:

Re: Displaying numbers

Post by Thomas Okken » Tue Feb 27, 2018 10:42 am

Krauts In Space wrote:
Tue Feb 27, 2018 9:33 am
With FIX I can determine how many digits after the decimal point/comma I want to have displayed.
FIX 00 - none
FIX 01 - one
and so on
This goes fine as long as the mantissa is less or equal than 12.
Entering 1.23456789012
FIX 11:
Mantissa: 1.23456789012
Adding 10
Mantissa: 11.2345678901
(10 digits after decimal point - not as expected by me)
FIX 03:
Mantissa: 11.235
(3 digits after decimal point - as expected)

I don't have my HP42S with me, so I can't check if this is the original behaviour.
Can anyone confirm if the 42s also works this way?
As you've observed yourself, the mantissa is displayed with up to 12 digits. The more digits there are before the decimal, the fewer positions are available after the decimal.

Yes, the real HP-42S works this way.
(Have you ever encountered a calculator that doesn't work this way?)

Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 2:48 pm
Location: Nuremberg, Germany

Re: Displaying numbers

Post by Krauts In Space » Tue Feb 27, 2018 11:24 am

Thomas Okken wrote:
Tue Feb 27, 2018 10:42 am
Krauts In Space wrote:
Tue Feb 27, 2018 9:33 am
With FIX I can determine how many digits after the decimal point/comma I want to have displayed.
FIX 00 - none
FIX 01 - one
and so on
This goes fine as long as the mantissa is less or equal than 12.
Entering 1.23456789012
FIX 11:
Mantissa: 1.23456789012
Adding 10
Mantissa: 11.2345678901
(10 digits after decimal point - not as expected by me)
FIX 03:
Mantissa: 11.235
(3 digits after decimal point - as expected)

I don't have my HP42S with me, so I can't check if this is the original behaviour.
Can anyone confirm if the 42s also works this way?
As you've observed yourself, the mantissa is displayed with up to 12 digits. The more digits there are before the decimal, the fewer positions are available after the decimal.

Yes, the real HP-42S works this way.
(Have you ever encountered a calculator that doesn't work this way?)
Well, with the HP35s:
FIX 9
1.1 -> 1.100000000 (8 zeros)
10 + -> 11.100000000 (8 zeros)
100 + -> 111.100000000 (8 zeros)

It's not a big thing with the DM42, but with all stack registers visible it is apparent and I got curious.
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5

Thomas Okken
Posts: 713
Joined: Tue May 02, 2017 3:48 pm
Location: United States
Contact:

Re: Displaying numbers

Post by Thomas Okken » Tue Feb 27, 2018 12:01 pm

Krauts In Space wrote:
Tue Feb 27, 2018 11:24 am
Thomas Okken wrote:
Tue Feb 27, 2018 10:42 am
Yes, the real HP-42S works this way.
(Have you ever encountered a calculator that doesn't work this way?)
Well, with the HP35s:
FIX 9
1.1 -> 1.100000000 (8 zeros)
10 + -> 11.100000000 (8 zeros)
100 + -> 111.100000000 (8 zeros)
Please continue that series. You stopped just before it was going to get interesting.

User avatar
akaTB
Posts: 487
Joined: Tue May 02, 2017 11:56 am
Location: Milan, Italy

Re: Displaying numbers

Post by akaTB » Tue Feb 27, 2018 12:40 pm

Thomas Okken wrote:
Tue Feb 27, 2018 12:01 pm
Please continue that series. You stopped just before it was going to get interesting.
:lol:
Greetings,
    Massimo
ajcaton
-+×÷ left is right and right is wrong :twisted: Casted in gold

Krauts In Space
Posts: 85
Joined: Wed Jan 03, 2018 2:48 pm
Location: Nuremberg, Germany

Re: Displaying numbers

Post by Krauts In Space » Tue Feb 27, 2018 12:56 pm

Thomas Okken wrote:
Tue Feb 27, 2018 12:01 pm
Krauts In Space wrote:
Tue Feb 27, 2018 11:24 am
Thomas Okken wrote:
Tue Feb 27, 2018 10:42 am
Yes, the real HP-42S works this way.
(Have you ever encountered a calculator that doesn't work this way?)
Well, with the HP35s:
FIX 9
1.1 -> 1.100000000 (8 zeros)
10 + -> 11.100000000 (8 zeros)
100 + -> 111.100000000 (8 zeros)
Please continue that series. You stopped just before it was going to get interesting.
You asked me if I know any other calculator that displays a mantissa the way I asked.
Hmmm ... I better answer 'yes' in any other case.
I DO know that simply adding zeros at the end of a number is worthless. It just was to proof my point.
I also can stop posting here if I'm annoying ...
DM15L S/# 10584 FW v25
DM42 S/# 01015 FW v3.5

Thomas Okken
Posts: 713
Joined: Tue May 02, 2017 3:48 pm
Location: United States
Contact:

Re: Displaying numbers

Post by Thomas Okken » Tue Feb 27, 2018 1:10 pm

Jesus fucking Christ. This kind of bullshit is why I ended up shutting down my own Free42 forum. I honestly can't tell whether Krauts in Space is trolling here, or is just really, really dumb.

JUST CONTINUE THE FUCKING SERIES AND OBSERVE HOW MANY DIGITS THERE ARE AFTER THE DECIMAL AS THE NUMBER OF DIGITS BEFORE THE DECIMAL KEEPS INCREASING.

User avatar
Walter
Posts: 1554
Joined: Tue May 02, 2017 9:13 am
Location: Close to FRA, Germany

Re: Displaying numbers

Post by Walter » Tue Feb 27, 2018 1:15 pm

Come on, do the test with 4/3 instead ... 8-) (no reason for going banana IMHO)
DM42 SN: 00041 Beta
WP 43S running on this device

HP-35, HP-45, ..., HP-50, WP 34S, WP 31S, DM16L

Thomas Okken
Posts: 713
Joined: Tue May 02, 2017 3:48 pm
Location: United States
Contact:

Re: Displaying numbers

Post by Thomas Okken » Tue Feb 27, 2018 1:25 pm

Walter wrote:
Tue Feb 27, 2018 1:15 pm
Come on, do the test with 4/3 instead ... 8-) (no reason for going banana IMHO)
And what difference is that going to make? Am I losing my mind here or was the question about why a calculator, set to FIX n, might display fewer than n digits behind the decimal?

Krauts in Space's refusal to actually pay attention to what calculators do is the problem, not whether he's looking at a string of zeroes vs. a string of threes.

Thomas Okken
Posts: 713
Joined: Tue May 02, 2017 3:48 pm
Location: United States
Contact:

Re: Displaying numbers

Post by Thomas Okken » Tue Feb 27, 2018 1:54 pm

So, one more time:
Krauts In Space wrote:
Tue Feb 27, 2018 11:24 am
FIX 9
1.1 -> 1.100000000 (8 zeros)
10 + -> 11.100000000 (8 zeros)
100 + -> 111.100000000 (8 zeros)
1000 + -> ??? (how many zeroes?)
10000 + -> ??? (how many zeroes?)
100000 + -> ??? (how many zeroes?)

If you'd tried the exact same test case on the 35s that you started this thread about, THE EXACT SAME ONE, you would have seen what was going on. But no, instead of FIX 11 you set it to FIX 9, and then you stop the series exactly when it reaches 12 digits. Why?

Post Reply