This site is supported by donations to The OEIS Foundation.
Template:From base a to base b/doc
From OeisWiki
The {{from base a to base b}} base conversion template converts a base representation of a real number into its base representation . Currently supports up to 32 digits for integer part and up to 32 digits for fractional part.
Usage
- {{from base a to base b|a real number xa in base a|a positive integer radix (base) a ≥ 2|a positive integer radix (base) b ≥ 2}}
Valid input
- A real number (in base ) as first argument,
- a positive integer base (radix) as second argument,
- a positive integer base (radix) as third argument.
Examples
Examples with valid input
Code Result Comment {{from base a to base b|59|10|2}} 0000000.00000000 {{from base a to base b|59|10|3}} 0000000.00000000 {{from base a to base b|59|10|6}} 0000000.00000000 {{from base a to base b|59|10|8}} 0000000.00000000 {{from base a to base b|59|10|10}} x0000000.00000000 {{from base a to base b|1,1,1,0,1,1|2|10}} 00000000.00000000 {{from base a to base b|1,1,1,0,1,1|2|6}} 00000000.00000000
Examples with invalid input
Code
See also
- {{from base 10}} base conversion template
- {{to base 10}} base conversion template
External links
- Number Bases Conversion from ConvertXY.com
- Jack Sanders-Reed, Base Conversion (Java applet calculator capable of converting a number from/to any base 2-36.)
- Base Conversion (Convert to/from base two through base sixteen.)
- Base Convert (Convert to/from any integer base greater than 1 or Roman numerals.)