extras/types/Currency: note on double vs int.
authorRejean Loyer <redj@ecere.com>
Tue, 15 Apr 2014 05:59:32 +0000 (01:59 -0400)
committerRejean Loyer <redj@ecere.com>
Mon, 16 Mar 2015 05:31:46 +0000 (01:31 -0400)
extras/types/Currency.ec

index 7a29b3f..ab6d734 100644 (file)
@@ -15,6 +15,9 @@ extern int __ecereVMethodID_class_OnGetDataFromString;
 
 private:
 
+//public class Currency : int <-- this should really be an int64 or something because currency amounts are discrete numbers
+//                               because the math on double type can introduce variations or whatnot
+// I think you might want the public class SomethingCurrency : double type for more abstract currency work... statistical? scientific? but not for transactional...
 public class Currency : double
 {
    const char * OnGetString(char * tempString, void * fieldData, bool * needClass)