Re: Bug converting string into integer

2001-02-07 Thread Sam Wong
; Sent: Thursday, February 08, 2001 1:15 AM Subject: RE: Bug converting string into integer > > In a SELECT I have to convert a string into a number. > > > > I used to use something like 'string'+0, where 'string' is a string > > rapresentation of a

RE: Bug converting string into integer

2001-02-07 Thread Carsten H. Pedersen
> In a SELECT I have to convert a string into a number. > > I used to use something like 'string'+0, where 'string' is a string > rapresentation of an integer. > > Now I noticed that in many cases it returns a rounded floating point!!! > > For example: > > mysql> select '11'+0; > +

RE: Bug converting string into integer

2001-02-07 Thread The Tilghman
om: Federico Giannici [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 07, 2001 09:09 > To: MySQL mailinglist > Subject: Bug converting string into integer > > > In a SELECT I have to convert a string into a number. > > I used to use something like 'string

Bug converting string into integer

2001-02-07 Thread Federico Giannici
In a SELECT I have to convert a string into a number. I used to use something like 'string'+0, where 'string' is a string rapresentation of an integer. Now I noticed that in many cases it returns a rounded floating point!!! For example: mysql> select '11'+0; +-+ | '11'+0