MySQL Forums :: Newbie :: Bug in the floating point value


Advanced Search

Bug in the floating point value
Posted by: mani maran ()
Date: April 08, 2009 01:11AM

hi,
i am facing problem when insert the floating point "1.0" in the tables, it is converted as "1" , is there anyway to store the exact floating point values?
my intention is to insert the values like "1.0" or "1.10" or "1.110" without any restriction.

description of the table is

Create Table: CREATE TABLE `chips` (
`chip_id` int(11) NOT NULL auto_increment,
`chip_version` float default NULL,
) ENGINE=InnoDB

can anyone please help me.

Options: ReplyQuote


Subject Written By Posted
Bug in the floating point value mani maran 04/08/2009 01:11AM
Re: Bug in the floating point value Anton Hack 04/08/2009 09:07AM
Re: Bug in the floating point value mani maran 04/09/2009 12:59AM
Re: Bug in the floating point value Mark Snyder 04/09/2009 08:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.