Integer changes between Basic and Programmer mode in Calculator

Originator:BumbleBritches57
Number:rdar://33621061 Date Originated:July 31 2017
Status: Resolved:NO
Product:macOS + SDK Product Version:10.12
Classification:Bug Reproducible:Yes
 
I tested switching back and forth between those 2 modes for the numbers 2^X, where X is between 0 and 32, and it ONLY shows up for 2^6

I made sure to clear the result between each one.

I'm on a 2012 Retina MacBook Pro 15", but I doubt it's a hardware problem.

Steps to Reproduce:
If you enter 2^6 in basic mode in the calculator, you'll be greeted with the correct answer, 64.

If you then switch to programmer mode, it will change to 63.

Expected Results:
The correct result, 64.

Observed Results:
The result is off by 1, negatively.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!