Quantcast
Channel: Tech Support Guy
Viewing all articles
Browse latest Browse all 38405

phpMyAdmin - 2 decimal places problem

$
0
0
I have a database table containing average daily kilometerage (if such a word exists) allowed, and having been done, for, and by, cars in a rental fleet.
I have set up both fields as decimal(11,2) in the type column of the table (see attached screenshots) and have defaulted the 'allowed' field to 82.20 which shows correctly in the Structure Tab of phpMyAdmin but is rounded down to 82.00 in the Browse Tab and subsequently the database itself.
How can I insist on 2 decimal places for fields in my DB, if not by using decimal(11,2) in my Type column? I'm obviously missing something...

Attached Thumbnails
Click image for larger version

Name:	KSS.png
Views:	N/A
Size:	54.4 KB
ID:	215806   Click image for larger version

Name:	KSS2.png
Views:	N/A
Size:	33.5 KB
ID:	215807  

Viewing all articles
Browse latest Browse all 38405

Trending Articles