Re: Fractions

2002-09-23 Thread Michael T. Babcock
ultiplies and >sum. > > It depends on why you're storing this information in the first place. If what you want is the precision of fractions (which you lose with floating point), then store the numerator and denominator. If you want quick and dirty calculations at certain

Re: Fractions

2002-09-22 Thread Jan Steinman
the mathematics are wide open. > _M > >I suspect that a float add is faster than 3 integer multiplies and >sum. Ah, but it is not as accurate! If the original poster knows he needs fractions, he won't be happy with float. Just as one should NEVER use floating point to represent mon

Re: Fractions

2002-09-20 Thread MySQL
a float add is faster than 3 integer multiplies and sum. ]-Original Message- ]From: MySQL [mailto:[EMAIL PROTECTED]] ]Sent: Thursday, September 19, 2002 7:51 PM ]To: [EMAIL PROTECTED] ]Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] ]Subject: Re: Fractions ] ] ] Mailing-Li

RE: Fractions

2002-09-20 Thread Madscientist
PM ]To: [EMAIL PROTECTED] ]Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] ]Subject: Re: Fractions ] ] ] Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm ](http://www.ezmlm.org) ] X-Sender: [EMAIL PROTECTED]@teton.kitebird.com ] Date: Thu, 19 Sep 2002 08:54:55 -0500 ] From: Paul DuBois

Re: Fractions

2002-09-19 Thread MySQL
7 -0500 9/18/02, William Martell wrote: >Hello. > >Can anyone tell me whether we can represent fractions in MySQL 4.0. I have >data representing different lengths of objects measured in inches. Can I >load this data as is into a field in MySQL or do I have to convert it

Re: Fractions

2002-09-19 Thread Michael T. Babcock
[ this mysql spam filter sucks -- including a query in one's message isn't good enough ] [EMAIL PROTECTED] wrote: >>you could store them as 3 integers. The integral part, the numerator >>of the fraction and the denominator of the fraction - then interpret >>them at the client side. >> >

Re: Fractions

2002-09-19 Thread Thomas Spahni
On Wed, 18 Sep 2002, William Martell wrote: > Can anyone tell me whether we can represent fractions in MySQL 4.0. I have > data representing different lengths of objects measured in inches. Can I > load this data as is into a field in MySQL or do I have to convert it first > into

Re: Fractions

2002-09-19 Thread David Patte
you could store them as 3 integers. The integral part, the numerator of the fraction and the denominator of the fraction - then interpret them at the client side. William Martell wrote: > sql,query,database,odbc > > > Hello All, > > Can anyone tell me whether I can repr

Fractions

2002-09-19 Thread William Martell
sql,query,database,odbc Hello All, Can anyone tell me whether I can represent fractions in MySQL 4. I have data representing different lengths of objects measured in inches. Can I load this data as is into a field in MySQL and still retain the same value or do I have to convert it first to a

Re: Fractions

2002-09-19 Thread Paul DuBois
At 20:47 -0500 9/18/02, William Martell wrote: >Hello. > >Can anyone tell me whether we can represent fractions in MySQL 4.0. I have >data representing different lengths of objects measured in inches. Can I >load this data as is into a field in MySQL or do I have to convert it

Fractions

2002-09-19 Thread William Martell
Hello. Can anyone tell me whether we can represent fractions in MySQL 4.0. I have data representing different lengths of objects measured in inches. Can I load this data as is into a field in MySQL or do I have to convert it first into an floating point interger or decimal value??? Thanks in