SA-MP Forums Archive
Database Type for Floats - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Database Type for Floats (/showthread.php?tid=409811)



Database Type for Floats - AphexCCFC - 23.01.2013

Which database type would it be for floats? I've tried INT(20) but whenever I enter a saving position like 12.1234 it changes itself to "12".


Re: Database Type for Floats - Scenario - 23.01.2013

I believe you mean table field type. There actually is one for float values, search through the list a bit more. Otherwise, you could use varchar with a maximum value of 23.


Re: Database Type for Floats - ReneG - 23.01.2013

In MySQL, the syntax is 'float' (case-insensitive), couldn't you just look through your database editor, or used ******?


Re: Database Type for Floats - AphexCCFC - 23.01.2013

Thanks, I looked twice but didn't clock it, sorry


Re: Database Type for Floats - jonrb - 23.01.2013

http://dev.mysql.com/doc/refman/5.0/...-overview.html
See here for future reference