dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
postmodern has joined #datamapper
lgierth_ has joined #datamapper
lgierth has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #datamapper
lgierth_ has quit [Quit: Ex-Chat]
Gadgetoid has quit [Ping timeout: 250 seconds]
Gadgetoid has joined #datamapper
siel has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
siel has joined #datamapper
siel has quit [Ping timeout: 260 seconds]
skade has joined #datamapper
siel has joined #datamapper
DireFog_ is now known as DireFog
mikecmpbll has quit [Remote host closed the connection]
ziyan has joined #datamapper
<ziyan>
Hi guys, I am writing a Ruby application using Datamapper. I am needing to store prices in the database and also percentages. There are some computations with these fields. I would like to know what data types and advices to avoid floating point issues.
<ziyan>
performance is not the priority but the accuracy of the data
<ziyan>
we will be going up to scale: 10 for both values
<ziyan>
I have come across dm-money. But I think using DataMapper with 'Decimal' is the proper way to go. Is there any other suggesitions pls?
skade has quit [Quit: Computer has gone to sleep.]
<onewheelskyward>
NEver heard of dm-money.
<onewheelskyward>
Do you need currencies?
<ziyan>
dm-money, ya not so popular but found out when I was looking for it.
<ziyan>
I am actually onlyinterested in the storing and mathematical calculation of numbers
<ziyan>
its to do with money, so a little bit alart of the situation
<ziyan>
I checked BigDecimal from Ruby and seems to do the job. And as I understand BigDecimal in Datamapper is Decimal (because I got a deprication warning)
<onewheelskyward>
uh yeah, you don't want dm-money
skade has joined #datamapper
postmodern has joined #datamapper
lgierth has joined #datamapper
ziyan has quit [Ping timeout: 255 seconds]
skade_ has joined #datamapper
skade has quit [Ping timeout: 255 seconds]
namelessjon has joined #datamapper
skade_ has quit [Quit: Computer has gone to sleep.]