Skip to content

@m2mtech m2mtech released this Apr 20, 2017 · 11 commits to master since this release

Figure out from the documentation how to use the iOS struct NumberFormatter to format your display so that it only shows 6 digits after the decimal point (instead of showing all digits that can be represented in a Double). This will eliminate (or at least reduce) the need for Autoshrink in your display. While you’re at it, make it so that numbers that are integers don’t have an unnecessary “.0” attached to them (e.g. show “4” rather than “4.0” as the result of the square root of sixteen). You can do all this for your description in the CalculatorBrain as well.

https://cs193p.m2m.at/cs193p-assignment-1-extra-task-2-winter-2017/

Assets 2
You can’t perform that action at this time.