Article View: pl.comp.lang.ruby
Article #274Re: RoR type DB
From: Jan Szumiec
Date: Tue, 07 Nov 2006 22:33
Date: Tue, 07 Nov 2006 22:33
15 lines
1552 bytes
1552 bytes
misiek wrote: > I know that is not possible to store in database as :double type, like > SQL can. > Is some difrent way to have the same result ? I need to store numbers > information like > 0.12 > 0.00 > 0.99 > 3.34 Strzelam, ze w bazie trzymasz jakies kwoty. Nie zaleca sie przechowywania kwot pienieznych w double. Mozesz trzymac je jako integer a potem w widoku dolozyc sobie helpera, ktรณry z tego robi kwote dziesietna.
Technical Details
Message-ID:
<1162938795.712275.298700@m73g2000cwd.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mailReferences:
<eiqsm7$8c5$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail From: "Jan Szumiec" <jan.szumiec@gmail.com> Newsgroups: pl.comp.lang.ruby Subject: Re: RoR type DB Date: 7 Nov 2006 14:33:15 -0800 Organization: http://groups.google.com Lines: 16 Message-ID: <1162938795.712275.298700@m73g2000cwd.googlegroups.com> References: <eiqsm7$8c5$1@inews.gazeta.pl> NNTP-Posting-Host: 83.13.74.123 Mime-Version: 1.0 X-Trace: posting.google.com 1162938802 16237 127.0.0.1 (7 Nov 2006 22:33:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 7 Nov 2006 22:33:22 +0000 (UTC) In-Reply-To: <eiqsm7$8c5$1@inews.gazeta.pl> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=83.13.74.123; posting-account=FMiszA0AAABQtkerBRSLjEJiW7XY2eLK Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit