Once again, I\'m back with another custom identifier.
I wrote this just because I happened to need this a few times.
It doesn\'t do much, but what it does do, it does right. (confused yet? :_)). It takes two numbers, a low and a high, and returns the low number prefixed with as many zeros as needed to get the same length as the high number. purely for visual pleasure when making long numbered lists or something like that, since it will align nicely.
Usage:
$padnum(low, high, )
if you specify \'s\', it will add the zeroes to the end, rather than in front.
alias padnum {
if ($3 == s) {
return $+($1,$str(0, $calc($len($2) - $len($1))))
}
else {
return $+($str(0, $calc($len($2) - $len($1))),$1)
}
}