Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [ MySQL ] What data type for decimals?
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Amailer




PostPosted: Wed Mar 17, 2004 11:24 am   Post subject: [ MySQL ] What data type for decimals?

Hey,
Im trying ot make it so that i can post versions for my downloads- but my problem is that i can't seem to find any field that can accpet decimals and that can be sorted by (varchar won't do...duh)

what's the data type im suppose to use for this?
Sponsor
Sponsor
Sponsor
sponsor
PaddyLong




PostPosted: Wed Mar 17, 2004 1:43 pm   Post subject: (No subject)

float (smaller numbers), double (larger numbers) or decimal (decimal numbers stored as strings)
Amailer




PostPosted: Wed Mar 17, 2004 1:50 pm   Post subject: (No subject)

i tried them all...they all display as 0 :S ( i tried putting 0.1 btw )
NEVER MIND, i set it's length to 5,0 and now i set it to 5,1 Very Happy (D how many decimals are allowed..jeez lol *smacks his head*)


ALSO, what is the standard way of displaying a version?
0.000
0.00
0.0
0.0.0?? <- if that how to do that with mysql... Rolling Eyes
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: