This site is supported by donations to The OEIS Foundation.

Template:From base a to base b

From OeisWiki
Jump to: navigation, search

alt = This template is under construction...
This template is under construction.            

Please do not use this unfinished and/or still unreliable template.            


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

External links