Ignores multiplication after adding percent to a number

Bug #2071330 reported by Michał Sawicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Calculator
New
Unknown
gnome-calculator (Ubuntu)
New
Undecided
Unassigned

Bug Description

Correct:
1+0.1*100 = 11
1+100*10% = 11
(1+10%)*100 = 110

Wrong:
1+10%*100 = 1.1

o.O

https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/378

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-calculator 1:46.0-1ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-35.35-generic 6.8.4
Uname: Linux 6.8.0-35-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Jun 27 11:12:21 2024
InstallationDate: Installed on 2024-02-07 (141 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
ProcEnviron:
 LANG=pl_PL.UTF-8
 PATH=(custom, no user)
 SHELL=/usr/bin/zsh
 TERM=screen-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: gnome-calculator
UpgradeStatus: Upgraded to noble on 2024-02-07 (141 days ago)

Revision history for this message
Michał Sawicz (saviq) wrote :
description: updated
Michał Sawicz (saviq)
summary: - Wrong order of calculations when percents are involved
+ Ignores multiplication after adding percent to a number
description: updated
Changed in gnome-calculator:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.