3 ms·
This is pretty trivial but sure, something like: function calculate_score($votes, $item_hour_age, $gravity=1.8) { return ($votes - 1) / pow(($item_hour_a
by sstrudeau 16y ago
This is pretty trivial but sure, something like:
function calculate_score($votes, $item_hour_age, $gravity=1.8) {
return ($votes - 1) / pow(($item_hour_age+2), $gravity);
}