Apple fixed the iPhone calculator bug that said the answer to '1 + 2 + 3' was '24'

The bug is fixed in iOS 11.2, the latest version of Apple's software for iPhones.

If you've had issues with the iPhone calculator app, you might want to update your iPhone to the latest version of iOS.

Over the weekend, Apple released iOS 11.2, which contains a lot of new features and bug fixes.

One of those fixes addresses an annoying calculator glitch. Earlier this fall, users found that if you typed in 1 + 2 +3 quickly, it would return "24," not 6, the correct answer.

The problem was that the calculator app responded to the second "+" slowly, so it was totaling '1 + 23," not the correct answer. Users could get the right answer by carefully typing in the number slowly.

Now it's fixed. iOS 11.2 "fixes an issue in Calculator where typing numbers rapidly could lead to incorrect results," according to Apple.

You can update your iPhone in Settings > General > Software Update. The full iOS 11.2 changelog is reproduced below:

iOS 11.2 introduces Apple Pay Cash to send, request, and receive money from friends and family with Apple Pay. This update also includes bug fixes and improvements.

Apple Pay Cash (US Only) - Send, request, and receive money from friends and family with Apple Pay in Messages or by asking Siri

Other improvements and fixes - Adds support for faster wireless charging on iPhone 8, iPhone 8 Plus, and iPhone X with compatible third-party accessories - Introduces three new Live wallpapers for iPhone X - Improves video camera stabilization - Adds support in Podcasts to automatically advance to the next episode from the same show - Adds support in HealthKit for downhill snow sports distance as a data type - Fixes an issue that could cause Mail to appear to be checking for new messages even when a download is complete - Fixes an issue that could cause cleared Mail notifications from Exchange accounts to reappear - Improves stability in Calendar - Resolves an issue where Settings could open to a blank screen - Fixes an issue that could prevent swiping to Today View or Camera from the Lock Screen - Addresses an issue that could prevent Music controls from displaying on the Lock Screen - Fixes an issue that could cause app icons to be arranged incorrectly on the Home Screen - Addresses an issue that could prevent users from deleting recent photos when iCloud storage is exceeded - Addresses an issue where Find My iPhone sometimes wouldn't display a map - Fixes an issue in Messages where the keyboard could overlap the most recent message - Fixes an issue in Calculator where typing numbers rapidly could lead to incorrect results - Addressed an issue where the keyboard could respond slowly - Adds support for real-time text (RTT) phone calls for the deaf and hard of hearing - Improves VoiceOver stability in Messages, Settings, App Store, and Music - Resolves an issue that prevented VoiceOver from announcing incoming Notifications