This website requires JavaScript.
Explore
Help
Register
Sign In
L-electron-Rare
/
moodle
Watch
1
Star
0
Fork
0
You've already forked moodle
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
f54b9b94de77447aa217835cd4082a9ec64b7b62
moodle
/
mod
/
lesson
/
db
T
History
patrickslee
a3c092c96d
Mass cleanup of bad postgres upgrade scripts
2005-08-15 22:30:47 +00:00
..
mysql.php
Discovered a bug with lesson grades. While calculating the grade, intval was used to truncate the decimals from the grade. intavl is now replaced with round. round will now round the grade to 5 decimal places. The database only holds int(3). So, this has been changed to float to hold decimal numbers. We have found this to be much more accurate when converting the stored percentage in the database back to a point value (before this fix, users were getting numbers like 46.5 points instead of their original 47 points due to an inaccurate percent value). Files changed for this fix include:
2005-06-09 21:26:21 +00:00
mysql.sql
Discovered a bug with lesson grades. While calculating the grade, intval was used to truncate the decimals from the grade. intavl is now replaced with round. round will now round the grade to 5 decimal places. The database only holds int(3). So, this has been changed to float to hold decimal numbers. We have found this to be much more accurate when converting the stored percentage in the database back to a point value (before this fix, users were getting numbers like 46.5 points instead of their original 47 points due to an inaccurate percent value). Files changed for this fix include:
2005-06-09 21:26:21 +00:00
postgres7.php
Mass cleanup of bad postgres upgrade scripts
2005-08-15 22:30:47 +00:00
postgres7.sql
Discovered a bug with lesson grades. While calculating the grade, intval was used to truncate the decimals from the grade. intavl is now replaced with round. round will now round the grade to 5 decimal places. The database only holds int(3). So, this has been changed to float to hold decimal numbers. We have found this to be much more accurate when converting the stored percentage in the database back to a point value (before this fix, users were getting numbers like 46.5 points instead of their original 47 points due to an inaccurate percent value). Files changed for this fix include:
2005-06-09 21:26:21 +00:00