MySQL Forums
Forum List  »  Newbie

Problem with decimal precision
Posted by: Emilio Fuoco
Date: August 24, 2004 07:38AM

Hi !!

I've a table with a column type DECIMAL(22,21) UNSIGNED

Assume that I want to store 0.02270412445068359375
When I store it in the database, stored value is 0.022704124450683593750
^

Is it possible to avoid last zero? It's not useful for me.
When I read from database returned value is 0.022704124450683593750

My target is that returned value is 0.02270412445068359375.

Can anyone help me, please ?

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
Problem with decimal precision
August 24, 2004 07:38AM


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.