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...
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...