The converter takes a non-negative ints as inputs, and produces a Mayan number using the following textual notation:
- instead of top-down, numbers are written left-to-right
- digits (= numbers up to 20 exclusive, as Mayan numerals use a vigesimal, base-20 system) are separated by
_
- zero is represented by
0
- a dot is represented by
*
- a bar is represented by
|
(since numbers are rotated clockwise 90 degrees, the horizontal bar is not vertical)
For examples, check the test cases. Also check the online converter that can convert arabic numbers to the graphical representation of mayan numbers.