So you are saying we should just get rid of pennies? 

Actually that story is at the same time shocking, and yet makes perfect sense. 
It would be a great experiment to do that today and see what happens, 
especially when people charge n.99 for things. 

Bob


On Jul 16, 2012, at 3:36 PM, Peter M. Brigham wrote:

> On Jul 16, 2012, at 3:07 PM, Dr. Hawkins wrote:
> 
>>> As you noted, using REAL for currency arithmetic will get
>>> you into rounding issues but sounds like that's not a problem.  One
>>> approach I've seen for currency values is to store them as integers
>>> including the decimal places, e.g $100.00 would be stored as 10000, do the
>>> arithemtic in that form, then insert the decimal point for display
>>> purposes.
>> 
>> Actually working with the pennies, desirable as it would be, creates
>> new issues--displaying in livecode fields.  I think it will be simpler
>> to store in pennies, and convert to dollars while working, and back on
>> save.
> 
> For his entire life, my father kept the running balances in his checkbook 
> register in whole dollar amounts only, rounding each time he re-totaled. At 
> the end of the year he was off by at most $2, usually accurate to the nearest 
> dollar. In certain contexts, ignoring the small change doesn't matter at all 
> for the big picture.
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> http://home.comcast.net/~pmbrig
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to