[Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Sabine Knöfel
Hi, I am interested in your opinion. I use FixedDecimal for computing currency amounts. This works fine. When storing the amounts with voyage into mongo (I have a lot of them!!!), normally, one currency amount would be stored into mongo as follows: vatAmountEUR: {

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread jtuc...@objektfabrik.de
Am 19.08.13 10:46, schrieb jtuc...@objektfabrik.de: Am 19.08.13 10:38, schrieb Sabine Knöfel: I think, this is a lot of stuff for one single value. I tend to convert the FixedDecimal into a Float for storing it. In this case, it would be like this: vatAmountEUR: 0.7196 When loading, I

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Esteban Lorenzano
Hi, yes, looks like too much :) I would go with the float representation... for the conversion, I do not have an experience or opinion about performance or db footprint. You have to check that in the old empirical fashion way :) Esteban On Aug 19, 2013, at 10:38 AM, Sabine Knöfel

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Henrik Johansen
On Aug 19, 2013, at 10:38 , Sabine Knöfel sabine.knoe...@gmail.com wrote: Hi, I am interested in your opinion. I use FixedDecimal for computing currency amounts. This works fine. When storing the amounts with voyage into mongo (I have a lot of them!!!), normally, one currency amount

Re: [Pharo-users] your opinion about storing FixedDecimal in Mongo

2013-08-19 Thread Sabine Knöfel
Hi Henry, Esteban, Joachim, thanks for your opinion! The ranges of my data are relatively small because my application deals with travel expenses, e.g. Hotel receipts, Taxi receipts, Flights et. So, 99,99% of all my amounts are less than 10.000 Euro. So I will try it with the Float solution and