Re: currency precision with decimal row

2003-10-25 Thread Roger Baklund
* Jean-Pierre Schwickerath > I'm trying to write some kind of small accounting software and I got > stuck with the problem that doing a SUM() on values of a DECIMAL(7,2) > row did show problems with (relatively) small values (like 173.58). I > found a message explaining that mysql uses doubles inte

Re: Currency

2003-10-02 Thread Scott Brown
I am guessing that you are trying to find a MySQL data type of "Currency", which does not exist. I generally use a column that is DECIMAL(150,2) for US currency. --Scott At 01:32 PM 10/2/2003, Fabio Bernardo wrote: I´m having some problems with currency´s fields. Actually I dont know what mys

Re: Currency

2003-10-02 Thread Paul DuBois
At 17:32 -0300 10/2/03, Fabio Bernardo wrote: I´m having some problems with currency´s fields. Actually I dont know what mysql´s field typeI have to choose..^ I wanna input this value: U$32.00 but, when I write the query: Select 'field' from table it returns.. '32' and not 32.00. Wh

Re: Currency Problem

2002-08-21 Thread Dave Reinhardt
this is a php question, try: http://www.php.net/manual/en/function.number-format.php > Hi, > > I just want to know if mysql can set the output of a certain currency to > this pattern : > > $1,500.00 > > If I use a comma on a certain amount then I add it up to another amount with > a comma I ge

Re: currency type

2002-07-30 Thread Paul DuBois
;Mike(mickako)Blezien" <[EMAIL PROTECTED]> >>Reply-To: [EMAIL PROTECTED] >>To: Desmond Lee <[EMAIL PROTECTED]> >>CC: [EMAIL PROTECTED] >>Subject: Re: currency type >>Date: Tue, 30 Jul 2002 11:36:30 -0500 >> >>>>Desmond Lee wrote: >>&g

Re: currency type

2002-07-30 Thread Desmond Lee
quot; <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: Desmond Lee <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: currency type >Date: Tue, 30 Jul 2002 11:36:30 -0500 > > >>Desmond Lee wrote: > > > > Hi there > > > > Does mysq

Re: currency type

2002-07-30 Thread Mike(mickako)Blezien
>>Desmond Lee wrote: > > Hi there > > Does mysql have a currency type, or is it best to just use a varchar or a > float? > > Thanks > > Desmond I normally use the DECIMAL(6,2) data type, works very for currency values. -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder R

Re: currency: which data type?

2001-11-12 Thread Carl Troein
Saqib Shaikh writes: > I'm interested to know what data type people consider suitable for storing > currency. As far as I know, the way to do it is to store the number of the smallest possible unit as an integer of some sort. You'll never run into any odd floating point-to-decimal conversion pr