[Pkg-wmaker-commits] [wmcalc] 58/65: wmcalc: Increase significant digits.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sun Aug 23 13:54:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmcalc.
commit a82316986606f0370efd9ebf7daa29c51b9b7706
Author: Doug Torrance <dtorrance at piedmont.edu>
Date: Sun Aug 23 02:20:06 2015 -0400
wmcalc: Increase significant digits.
Patch by Antony Gelberg <antony at 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/
---
wmcalcfunc.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/wmcalcfunc.c b/wmcalcfunc.c
index 692fa3c..8b98338 100644
--- a/wmcalcfunc.c
+++ b/wmcalcfunc.c
@@ -17,6 +17,7 @@
Change History:
Date Modification
11/03/00 File Header added
+ 27/12/06 Increased significant digits (Antony Gelberg, antony at 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcalc.git
More information about the Pkg-wmaker-commits
mailing list