Re: problem with Calculator app

Carl Hoefs <[email protected]> Thu, 9 Jan 2020 14:30:53 -0700
Newsgroups gmane.comp.macosx.general
Message-ID <[email protected]>
I can't get the NaN result from C code running on Mojave using the various exp() function calls.

> expf: 0.367879
> exp:  0.3678794411714423
> expl: 0.3678794411714423216101625679907982657823595218360424041748046875

I remember that once upon a time the source code for Calculator.app was available so you could modify it. It would be very telling to see how they're calling exp()!

-Carl


> On Jan 9, 2020, at 1:25 PM, Macs R We <[email protected]> wrote:
> 
> Huh. I did the same experiment — copied Calculator from my Sierra Mini to my Mojave Mini and ran the sequence. As you did, I got Not a number, same as the native Calculator.
> 
> Then I did it again, copying it to my High Sierra MBP.
> 
> I got "8".   😱
> 
> No fooling. I've done it a half dozen times using different sequences of keystrokes (voodoo, to be sure, but one should make the trial).
> 
> Something is clearly rancid here.
> 
> All the responses I got back from AMUG were consistent: "Not a Number" on HS or M, the correct number everywhere else.
> 
> 
> 
>> On Jan 9, 2020, at 1:02 PM, Carl Hoefs <[email protected] <mailto:[email protected]>> wrote:
>> 
>> Wow, that would seem to indicate that a macOS system RTL or framework has a huge bug! 
>> 
>> -Carl
>> 
>> 
>>> On Jan 9, 2020, at 12:53 PM, Andy Ringsmuth <andy-yKgGfti1P+pWk0Htik3J/[email protected] <mailto:andy-yKgGfti1P+pWk0Htik3J/[email protected]>> wrote:
>>> 
>>> Just tried that. Still “not a number” answer.
>>> 
>>> 
>>> -Andy
>>> 
>>> 
>>>> On Jan 9, 2020, at 12:36 PM, Carl Hoefs <[email protected] <mailto:[email protected]>> wrote:
>>>> 
>>>> An interesting test would be to take the Calculator.app from Sierra and run it on Mojave.
>>>> 
>>>> -Carl
>>>> 
>>>> 
>>>>> On Jan 9, 2020, at 12:32 AM, Jean-Christophe Helary <jean.christophe.helary-QgsHSxYFCUK3byy5ozDitmD2FQJk+8+b@public.gmane.org <mailto:jean.christophe.helary-QgsHSxYFCUK3byy5ozDitmD2FQJk+8+b@public.gmane.org>> wrote:
>>>>> 
>>>>>> On Jan 9, 2020, at 11:59, Dinse, Gregg (NIH/NIEHS) [C] <[email protected] <mailto:[email protected]>> wrote:
>>>>>> 
>>>>>> A friend just told me that it works on his Catalina mac, so perhaps they fixed it in the latest OS.  I do not have any Catalina machines, so I can't check that.
>>>>> 
>>>>> Catalina here and both input work.
>>>>> 
>>>>> Jean-Christophe Helary
>>>>> -----------------------------------------------
>>>>> http://mac4translators.blogspot.com <http://mac4translators.blogspot.com/> @brandelune
>> 
>> _______________________________________________
>> MacOSX-talk mailing list
>> [email protected] <mailto:[email protected]>
>> https://www.omnigroup.com/mailman/listinfo/macosx-talk
> 
> -- 
>   Macs R We -- Personal Macintosh Service and Support
>     in the Wickenburg and far Northwest Valley Areas.
>                             http://macsrwe.com <http://macsrwe.com/>

_______________________________________________
MacOSX-talk mailing list
[email protected]
https://www.omnigroup.com/mailman/listinfo/macosx-talk