Data update

This commit is contained in:
Ingy döt Net 2025-06-11 20:16:52 -04:00
parent 72eb4943cb
commit 4d5544505c
2347 changed files with 62432 additions and 16731 deletions

View file

@ -0,0 +1,15 @@
<?php
// Map range
function map_range($s, $a1, $a2, $b1, $b2) {
return ($s - $a1) * ($b2 - $b1) / ($a2 - $a1) + $b1;
}
for ($i = 0; $i <= 10; $i++) {
$mr = map_range($i, 0, 10, -1, 0); // To avoid too long line.
echo(str_pad($i, 2, ' ', STR_PAD_LEFT)
.' maps to: '
.str_pad(number_format($mr, 1, '.', ''), 4, ' ', STR_PAD_LEFT)
.PHP_EOL);
}
?>