Qalculate / libqalculate

Qalculate! library and CLI
https://qalculate.github.io/
GNU General Public License v2.0
1.81k stars 145 forks source link

qalc keeps asking percentage interpretation #683

Open agguser opened 2 months ago

agguser commented 2 months ago
: qalc -v
5.2.0

: qalc '100+20%'   # first time
Please select interpretation of percentage addition.

0 = Add percentage multiplied by 1/100
(100 + 10% = 100 + (10 × 0.01) = 100.1)

1 = Add percentage of original value (default)
(100 + 10% = 100 × 110% = 110)

Percentage interpretation: 1
100 × (120 × percent) = 120

: qalc '100+20%'   # second time
Please select interpretation of percentage addition.

0 = Add percentage multiplied by 1/100
(100 + 10% = 100 + (10 × 0.01) = 100.1)

1 = Add percentage of original value (default)
(100 + 10% = 100 × 110% = 110)

Percentage interpretation: 1
100 × (120 × percent) = 120
hanna-kn commented 2 months ago

Fixed.