[PATCH 1/5] wmcalc: Increase significant digits.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
Patch by Antony Gelberg <[email protected]> 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/
---
 wmcalc/wmcalcfunc.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/wmcalc/wmcalcfunc.c b/wmcalc/wmcalcfunc.c
index 692fa3c..8b98338 100644
--- a/wmcalc/wmcalcfunc.c
+++ b/wmcalc/wmcalcfunc.c
@@ -17,6 +17,7 @@
     Change History:
     Date       Modification
     11/03/00   File Header added
+    27/12/06   Increased significant digits (Antony Gelberg, [email protected])
 
  ****************************************************************/
 
@@ -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;
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.