Vyxapedia

Element - τ - From Base Ten / To Custom Base

Characters: τ


Description

Convert a number to a different base from base 10.


Overloads

  • num-num - list of digits of a in base b
  • num-str - a converted into a string of characters of b
  • num-lst - a converted into a list of arbitrary values from b

Examples

  • 1234567 `abc` τ = `cacccabbbbcab`
  • 1234567 5 τ = ⟨3|0|4|0|0|1|2|3|2⟩
  • 8163 -10 τ = ⟨1|2|2|4|3⟩
  • 928343 ⟨`he`|`ll`|`o`⟩ τ = ⟨`ll`|`o`|`he`|`o`|`he`|`ll`|`ll`|`ll`|`ll`|`he`|`he`|`he`|`o`⟩
  • ⟨10|12|6|2|8|145⟩ 2 τ = ⟨⟨1|0|1|0⟩|⟨1|1|0|0⟩|⟨1|1|0⟩|⟨1|0⟩|⟨1|0|0|0⟩|⟨1|0|0|1|0|0|0|1⟩⟩
  • 0 1 τ = ⟨0⟩
  • 0 ⟨`a`⟩ τ = ⟨`a`⟩
  • 3 -2 τ = ⟨1|1|1⟩
  • 3 -1 τ = ⟨1|0|1|0|1⟩
  • -3 -1 τ = ⟨1|0|1|0|1|0⟩