Apple Climate’s 69 downside is brought on by integer math rounding

Apple's Weather app won't display 69 degrees anywhere in the forecast

A difficulty with Apple Climate has been making rounds, prompting foolish hypothesis that the app was designed to keep away from displaying 69° as a temperature. Nothing could possibly be farther from the reality—in actuality, this odd bug is a programming error that has already been fastened in iOS 15.


STORY HIGHLIGHTS:

  • The Climate app isn’t displaying “69” as a temperature as a result of a bug
  • Don’t fear, that is mainly an integer math conversion glitch
  • The problem is non-present in iOS 13 and the iOS 15 beta

Apple Climate’s 69 downside is a programming error

You will have learn experiences that Apple’s built-in Climate app on iPhone for some cause gained’t say it’s 69 levels Fahrenheit exterior when the truth is it’s.

Respected publications like The Verge even speculated that Apple could also be trying to chop down on 69-related humor. Such a preposterous notion would work to attract clicks to The Verge article, but it surely’s not true. And if it had been true, that might be a real PR catastrophe for Apple.

Chaim Gartenberg, The Verge:

For those who’re an iPhone person, the climate is at all times a very good 70 levels. Or 68 levels. Any temperature however 69 levels, really, as a result of it seems that the built-in climate app on some variations of iOS—together with the present model, iOS 14.6—will refuse to show the web’s favourite quantity, even when the precise temperature in a given location is, the truth is, 69 levels.

One attainable clarification for such a bizarre error, shared on Twitter, is sort of illuminating.

As an alternative of purposely avoiding displaying “69” as temperature, it seems that Apple could also be sourcing knowledge for the Climate app in Celsius after which changing it to Fahrenheit.

For instance, 20 levels Celsius converts to 68 levels Fahrenheit, whereas 21 levels Celsius converts to 69.8 levels Fahrenheit — which rounds as much as 70 levels Fahrenheit. The app seems to have comparable points with temperatures like 65 levels (the place 18 levels Celsius converts to 64.4 levels Fahrenheit, whereas 19 levels Celsius is 66.2 levels Fahrenheit).

And there you’ve it.

“Typically a cigar is simply an integer math conversion glitch,” John Gruber summed it up properly.

Don’t blame Apple’s need for whole management for Climate’s “69” downside as a result of typically a silly bug is simply that, a silly bug that must be squished. For these questioning, solely the present secure model of iOS, iOS 14.6, is affected by this situation.

The Climate app on the iOS 15 beta doesn’t endure from the identical situation, suggesting Apple was conscious of this downside and moved to repair it. Furthermore, the bug is non-present on iOS 13.

Leave a Reply

Your email address will not be published. Required fields are marked *