This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Convert-Radix | |
{ | |
<# | |
.SYNOPSIS | |
Converts a number to a string using an arbitrary radix/base. | |
.DESCRIPTION | |
The `Convert-Radix` function converts a number to a string, using an arbitrary radix/base. The resulting string can | |
be used as a filename. The function uses letters a-z then characters "!#$%&''()+,-;=@^_`{}~", for numbers | |
above 9 and below 60. It doesn't use upper case letters (because Windows is case-insensitive) and characters that |