Skip to main content
added 271 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

05AB1E, 7845 535535 34

BC

Try it online!Try it online!

This converts the input from base 102 according to 05AB1E's codepage. TB is mapped to 2911 and öC to 24512. Digits larger or equal to the base are allowed and "overflow" into the next digit.
This can be inverted by iterating the digits of the output in reverse:

inverse program:

[D0Q#    "loop while TOS != 0"\
T‰`2‰`      "divmod 10"\
5Qii        "if the last digit was 101:"\
 'öˆ24'Bˆ5-   "append ö to global array and subtract 245 from TOS"\
ë        "else:"\
 'Tˆ2'Cˆ6-   "append T to global array and subtrac 26 from TOS"\
]¯RJ     "after the loop: reverse global array and join"\

Try it online!Try it online!

05AB1E, 7845 535


Try it online!

This converts the input from base 10 according to 05AB1E's codepage. T is mapped to 29 and ö to 245. Digits larger or equal to the base are allowed and "overflow" into the next digit.
This can be inverted by iterating the digits of the output in reverse:

inverse program:

[D0Q#    "loop while TOS != 0"\
T‰`      "divmod 10"\
5Qi      "if the last digit was 10:"\
 'öˆ24-  "append ö to global array and subtract 24 from TOS"\
ë        "else:"\
 'Tˆ2-   "append T to global array and subtrac 2 from TOS"\
]¯RJ     "after the loop: reverse global array and join"\

Try it online!

05AB1E, 7845 535 34

BC

Try it online!

This converts the input from base 2 according to 05AB1E's codepage. B is mapped to 11 and C to 12. Digits larger or equal to the base are allowed and "overflow" into the next digit.
This can be inverted by iterating the digits of the output in reverse:

[D0Q#    "loop while TOS != 0"\
2‰`      "divmod 10"\
i        "if the last digit was 1:"\
 'Bˆ5-   "append ö to global array and subtract 5 from TOS"\
ë        "else:"\
 'Cˆ6-   "append T to global array and subtrac 6 from TOS"\
]¯RJ     "after the loop: reverse global array and join"\

Try it online!

added 271 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

05AB1E, 78457845 535

тö

Try it online!Try it online!

This converts the input from base 10010 according to 05AB1E's codepage. тT is mapped to 7629 and ö to 245. Digits larger or equal to the base are allowed and "overflows""overflow" into the next digit.
This means that every string of т and ö is interpreted as a base-100 integer withcan be inverted by iterating the digits 45, 47, 76, 78 and potentially a leading 2.of the output in reverse:

inverse program:

2K              # remove all 2's
  SιнJ          # get every other digit
      „74„тö‡   # replace 7 with т and 4 with ö
[D0Q#    "loop while TOS != 0"\
T‰`      "divmod 10"\
5Qi      "if the last digit was 10:"\
 'öˆ24-  "append ö to global array and subtract 24 from TOS"\
ë        "else:"\
 'Tˆ2-   "append T to global array and subtrac 2 from TOS"\
]¯RJ     "after the loop: reverse global array and join"\

Try it online!Try it online!

05AB1E, 7845

тö

Try it online!

This converts the input from base 100 according to 05AB1E's codepage. т is mapped to 76 and ö to 245. Digits larger or equal to the base are allowed and "overflows" into the next digit.
This means that every string of т and ö is interpreted as a base-100 integer with digits 45, 47, 76, 78 and potentially a leading 2.

inverse program:

2K              # remove all 2's
  SιнJ          # get every other digit
      „74„тö‡   # replace 7 with т and 4 with ö

Try it online!

05AB1E, 7845 535


Try it online!

This converts the input from base 10 according to 05AB1E's codepage. T is mapped to 29 and ö to 245. Digits larger or equal to the base are allowed and "overflow" into the next digit.
This can be inverted by iterating the digits of the output in reverse:

inverse program:

[D0Q#    "loop while TOS != 0"\
T‰`      "divmod 10"\
5Qi      "if the last digit was 10:"\
 'öˆ24-  "append ö to global array and subtract 24 from TOS"\
ë        "else:"\
 'Tˆ2-   "append T to global array and subtrac 2 from TOS"\
]¯RJ     "after the loop: reverse global array and join"\

Try it online!

added 271 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

05AB1E, 7845

тö

Try it online!

This converts the input from base 100 according to 05AB1E's codepage. т is mapped to 76 and ö to 245. Digits larger or equal to the base are allowed and "overflows" into the next digit.
This means that every string of т and ö is interpreted as a base-100 integer with digits 45, 47, 76, 78 and potentially a leading 2.

Inverse Program inverse program:

2K              # remove all 2's
  SιнJ          # get every other digit
      „74„тö‡   # replace 7 with т and 4 with ö

Try it online!

05AB1E, 7845

тö

Try it online!

This converts the input from base 100 according to 05AB1E's codepage. т is mapped to 76 and ö to 245. Digits larger or equal to the base are allowed and "overflows" into the next digit.
This means that every string of т and ö is interpreted as a base-100 integer with digits 45, 47, 76, 78 and potentially a leading 2.

Inverse Program

05AB1E, 7845

тö

Try it online!

This converts the input from base 100 according to 05AB1E's codepage. т is mapped to 76 and ö to 245. Digits larger or equal to the base are allowed and "overflows" into the next digit.
This means that every string of т and ö is interpreted as a base-100 integer with digits 45, 47, 76, 78 and potentially a leading 2.

inverse program:

2K              # remove all 2's
  SιнJ          # get every other digit
      „74„тö‡   # replace 7 with т and 4 with ö

Try it online!

Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161
Loading