Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what data type would money be when setting data type for field?

Status
Not open for further replies.

spewn

Programmer
Joined
May 7, 2001
Messages
1,034

i'm trying to store prices in mysql...i'm editing the field name and it asks for data type...i've tried decimal, float, double, integer. nothing keeps the X.XX format.

any ideas?

- g
 
I recommend you use decimal.

Integer stores, well, integers. Float and double are imprecise.

What does "nothing keeps the X.XX format" mean?



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
i got it...i used decimal and changed the values in the maxlength,decimal places.

thanks for your help! - g
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top