Re: Commodities initialization list

2015-08-11 Thread John Ralls
On Aug 11, 2015, at 8:27 AM, Geert Janssens geert.gnuc...@kobaltwit.be wrote: On Monday 10 August 2015 16:29:25 John Ralls wrote: On Aug 10, 2015, at 3:16 PM, Ngewi Fet nge...@gmail.com wrote: Hello everyone, Could someone point out to me where the commodities list is found in the

Re: Rounding in the price db.

2015-08-11 Thread John Ralls
On Aug 11, 2015, at 8:29 AM, Geert Janssens geert.gnuc...@kobaltwit.be wrote: On Monday 10 August 2015 16:27:40 John Ralls wrote: On Aug 10, 2015, at 10:34 AM, Geert Janssens I seem to remember that banks here use 6 significant digits in exchange rates, which is not quite the same as 6

Re: Rounding in the price db.

2015-08-11 Thread John Ralls
On Aug 10, 2015, at 10:44 PM, Mike Alexander m...@umich.edu wrote: --On August 10, 2015 at 4:27:40 PM +0100 John Ralls jra...@ceridwen.us wrote: I seem to remember that banks here use 6 significant digits in exchange rates, which is not quite the same as 6 places after the decimal

Re: Commodities initialization list

2015-08-11 Thread Geert Janssens
On Monday 10 August 2015 16:29:25 John Ralls wrote: On Aug 10, 2015, at 3:16 PM, Ngewi Fet nge...@gmail.com wrote: Hello everyone, Could someone point out to me where the commodities list is found in the repository? I tried searching the repo and can find code which seems to

Re: Commodities initialization list

2015-08-11 Thread Ngewi Fet
Thanks everyone. I'll use the ISO currencies list. Regards, Ngewi On Tue, Aug 11, 2015 at 10:01 AM, John Ralls jra...@ceridwen.us wrote: On Aug 11, 2015, at 8:27 AM, Geert Janssens geert.gnuc...@kobaltwit.be wrote: On Monday 10 August 2015 16:29:25 John Ralls wrote: On Aug 10, 2015,

Re: Rounding in the price db.

2015-08-11 Thread Geert Janssens
On Monday 10 August 2015 16:27:40 John Ralls wrote: On Aug 10, 2015, at 10:34 AM, Geert Janssens I seem to remember that banks here use 6 significant digits in exchange rates, which is not quite the same as 6 places after the decimal point. Your USD-Sao Tomean Dobra illustrates this: due

Re: Commodities initialization list

2015-08-11 Thread Derek Atkins
Phil Longstaff phil.longst...@gmail.com writes: I recently found the need to add a new stock which is traded on the TSX (Toronto Stock Exchange). Why do we hard-code commodity sources? I don't want to have to recompile to use a new exchange. You don't.. It's a user-defined field with a set of

Re: Commodities initialization list

2015-08-11 Thread Herbert Thoma
Am 11.08.2015 um 16:18 schrieb Derek Atkins: Phil Longstaff phil.longst...@gmail.com writes: I recently found the need to add a new stock which is traded on the TSX (Toronto Stock Exchange). Why do we hard-code commodity sources? I don't want to have to recompile to use a new exchange. You

Re: Commodities initialization list

2015-08-11 Thread Phil Longstaff
I recently found the need to add a new stock which is traded on the TSX (Toronto Stock Exchange). Why do we hard-code commodity sources? I don't want to have to recompile to use a new exchange. Phil On Tue, Aug 11, 2015 at 4:01 AM, John Ralls jra...@ceridwen.us wrote: On Aug 11, 2015, at

Re: Commodities initialization list

2015-08-11 Thread John Ralls
On Aug 11, 2015, at 3:30 PM, Herbert Thoma herbert.th...@iis.fraunhofer.de wrote: Am 11.08.2015 um 16:18 schrieb Derek Atkins: Phil Longstaff phil.longst...@gmail.com writes: I recently found the need to add a new stock which is traded on the TSX (Toronto Stock Exchange). Why do we

Re: Commodities initialization list

2015-08-11 Thread Geert Janssens
On Tuesday 11 August 2015 17:49:32 John Ralls wrote: On Aug 11, 2015, at 3:30 PM, Herbert Thoma herbert.th...@iis.fraunhofer.de wrote: Am 11.08.2015 um 16:18 schrieb Derek Atkins: Phil Longstaff phil.longst...@gmail.com writes: I recently found the need to add a new stock which is

Re: Rounding in the price db.

2015-08-11 Thread Mike Alexander
--On August 11, 2015 at 9:20:43 AM +0100 John Ralls jra...@ceridwen.us wrote: Hmm. That’s doable in master with careful rounding control. I’m pretty sure it would produce overflows in maint because the old int128 math is really int128-int64 and it barfs if any intermediate result won’t fit in