User:Kri/Backup of ConvertToBaseI/doc

Converts an integer from decimal to another base.

Usage
(see parameters)

Parameters

 * basename
 * The name of base, to be written in subscript after the number; to skip writing the base, set this parameter to 0. If this parameter is omitted, the base will be written in subscript after the number in its decimal number representation.
 * digitset
 * The name of the template containing the set of digits to use, for example HexadecimalDigit. If this parameter is omitted, each digit will be written in its decimal number representation.
 * separator
 * A separator to be written between the digits with an certain period. If this parameter is omitted, no separator will be written between the digits.
 * sepperiod
 * The period of the separator (if given). If this number non-positive, or the parameter is omitted, the period of the separator will be 1.
 * digitseparatorcount
 * Help variable for the template to keep track of how many digits it has written (from right to left) since the last separator. Omit this parameter for normal usage of the template.

Examples

 * gives


 * gives


 * gives


 * gives

Special cases
Negative numbers will be start with a minus sign to indicate their sign:


 * &minus; gives &minus;

Zero will always give the digit corresponding to the value 0:


 * gives

Numbers equal to or greater than $2^{28}$ (268,435,456) are to big to be handled:


 * gives