commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/gnue-config/base/currency/classes currency...


From: Neil Tiffin
Subject: gnue/gnue-config/base/currency/classes currency...
Date: Fri, 25 May 2001 12:36:05 -0700

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Neil Tiffin <address@hidden>    01/05/25 12:36:05

Modified files:
        gnue-config/base/currency/classes: currency.gcd 

Log message:
        Revise money class to use 64 bit integers.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-config/base/currency/classes/currency.gcd.diff?cvsroot=OldCVS&tr1=1.11&tr2=1.12&r1=text&r2=text

Patches:
Index: gnue/gnue-config/base/currency/classes/currency.gcd
diff -u gnue/gnue-config/base/currency/classes/currency.gcd:1.11 
gnue/gnue-config/base/currency/classes/currency.gcd:1.12
--- gnue/gnue-config/base/currency/classes/currency.gcd:1.11    Fri May  4 
17:35:08 2001
+++ gnue/gnue-config/base/currency/classes/currency.gcd Fri May 25 12:36:05 2001
@@ -22,7 +22,7 @@
 #
 # This file originally written by Neil Tiffin (address@hidden).
 #
-# $Revision: 1.11 $ $Date: 2001/05/05 00:35:08 $ $Author: ntiffin $
+# $Revision: 1.12 $ $Date: 2001/05/25 19:36:05 $ $Author: ntiffin $
 #
 
 # ===========================================================================
@@ -51,9 +51,9 @@
   {                               # this definition allows us to abstract
                                   #     qtys as needed.
                                   # todo amount should be 64 bit integer.
-    int        amount = 0;        # this integer has an implied decimal point
+    int64      amount = 0;        # this integer has an implied decimal point
                                   # for example if amount = 456192
-    int        num_decimals = 2;  # and numDecimals = 3
+    int16      num_decimals = 2;  # and numDecimals = 3
                                   # then amount really has a value of 456.192
     char       code<8>;
     



reply via email to

[Prev in Thread] Current Thread [Next in Thread]