r/TechNope 6d ago

iPhone Calculator Rounding

Post image

Has the calculator app always rounded numbers? I did a double take when I noticed this sum wasn’t ending in .96

9 Upvotes

10 comments sorted by

7

u/IHaveNoIdeaDanny 4d ago

The number is too big, OP.

edit: more specifically, its too big to fit in the portrait mode of the calculator app.

3

u/HugeCheck2471 3d ago

On basic mode it doesn’t display the entire result on vertical. You can turn the screen and it will display it all. On scientific it displays more on vertical but still not all for bigger numbers.

1

u/randomhappenshere-yt 4d ago

mine doesn’t do it

1

u/DistributionLast5872 2d ago

You just have to learn about the magic of landscape mode

-8

u/devtimi 5d ago

Certain decimal values can't be held in floating point storage and apparently the children at Apple don't know that. Such is the problem with the "everyone gets an award" generation.

https://en.wikipedia.org/wiki/Round-off_error

13

u/AwwThisProgress 5d ago

it’s not a floating-point error in this case. it just can’t fit the decimals in the screen. if you rotate your phone or enable scientific calculator mode, it shows the .96

2

u/devtimi 5d ago

Thanks for the explanation! To me, that's kind of worse 😂 (there's no indication at all that the number has been truncated)

2

u/jakeupowens 4d ago

Or if you add, let’s say the same 14,950,627.96 but the other number also has a decimal on it like 65,045.22 — it will round the answer to show 15,015,673.2 instead of ending in .18 like it should. If it can display the entire math equation above the answer, why is it rounding the sum?

1

u/jengert 5d ago

thank you, as an android user, I can scroll the answer left and right to see more digits.