Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Represent an integer in various forms of tally marks
ResourceFunction["TallyMarks"][n] outputs tally marks displaying the integer n. |
|
ResourceFunction["TallyMarks"][n,type] outputs type tally marks. |
|
ResourceFunction["TallyMarks"][n,type,m] uses at most m characters per line. |
"Default" | uses tick marks used in e.g. Europe, Americas, Africa, Australia, and New Zealand |
"Chinese" | uses tick marks used in e.g. China, Taiwan, Japan, Korea, and countries that use Chinese characters |
"Box" | uses tick marks used in e.g. France, Spain, and their former colonies and Brazil |
"DotsLines" | uses tick marks used in forestry and related fields |
Display 37 in tally marks:
In[1]:= |
![]() |
Out[1]= |
![]() |
Use the Chinese type of tally marks instead:
In[2]:= |
![]() |
Out[2]= |
![]() |
Set a maximum of 5 characters per line:
In[3]:= |
![]() |
Out[3]= |
![]() |
Show the various types of tally marks for the number 42:
In[4]:= |
![]() |
Out[4]= |
![]() |
Set the number of symbols per line to 1:
In[5]:= |
![]() |
Out[5]= |
![]() |
Set the number of symbols per line to 5:
In[6]:= |
![]() |
Out[6]= |
![]() |
Create a roughly square arrangement:
In[7]:= |
![]() |
Out[7]= |
![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License