Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

decimal number (1 reply)

$
0
0
I need to set variables as decimal number... for example, 1234.56. I'm using phpMyAdmin in WAMP to create the table and variables. I declared variables as decimal(6,2) then saved. The table then shows the variables as decimal(6,0). I don't understand why the "2" for # of decimal places is lost.

I created the same table using my webhost's phpMyAdmin and it worked as I expected, decimal(6,2).

Anyone have any ideas why this isn't working in WAMP? Am I doing something wrong?

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>