Function Repository Resource:

# TallyMarks

Represent an integer in various forms of tally marks

Contributed by: Sander Huisman
 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.

## Details and Options

The value for n should be a non-negative integer.
The following types are supported:
 "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
The value for m should be a positive integer, ∞ or Automatic. For the setting Automatic, the marks will be set in a roughly square arrangement.
ResourceFunction["TallyMarks"] has the following option:
 "Noise" False fraction of noise to add to the position of the lines and the position and size of the dots.
Possible forms for the option "Noise" are:
 True Adds 0.02 (2%) noise. False Adds no noise (Default). s Adds an amount s of noise.

## Examples

### Basic Examples (3)

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]=

### Scope (4)

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]=

### Options (2)

#### Noise (2)

Add the default amount of noise:

 In[8]:=
 Out[8]=

 In[9]:=
 Out[9]=

SHuisman

## Version History

• 2.0.0 – 10 May 2022
• 1.0.0 – 14 December 2020