wmcalc: Increase significant digits.

Patch by Antony Gelberg <antony@wayforth.co.uk> to fix Debian bug #320597 [1].
Obtained from the Debian package [2].

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=320597
[2] https://sources.debian.net/src/wmcalc/0.5-1/debian/patches/10_bts-320597_increase_significant_digits.patch/
This commit is contained in:
Doug Torrance 2015-08-23 02:20:06 -04:00 committed by Carlos R. Mafra
parent f6689b791e
commit 66ea05ae67

View file

@ -17,6 +17,7 @@
Change History:
Date Modification
11/03/00 File Header added
27/12/06 Increased significant digits (Antony Gelberg, antony@wayforth.co.uk)
****************************************************************/
@ -382,19 +383,19 @@ void equalfunc (void) {
switch (OpFlag) {
case '+':
RegisterA = RegisterB + RegisterA;
sprintf(DispString, "%10.5g", RegisterA);
sprintf(DispString, "%10.10g", RegisterA);
break;
case '-':
RegisterA = RegisterB - RegisterA;
sprintf(DispString, "%10.5g", RegisterA);
sprintf(DispString, "%10.10g", RegisterA);
break;
case '*':
RegisterA = RegisterB * RegisterA;
sprintf(DispString, "%10.5g", RegisterA);
sprintf(DispString, "%10.10g", RegisterA);
break;
case '/':
RegisterA = RegisterB / RegisterA;
sprintf(DispString, "%10.5g", RegisterA);
sprintf(DispString, "%10.10g", RegisterA);
break;
default:
break;