Evaluating numeric values

Published

July 29, 2024

GreekScientificOrthography includes the milesian function for parsing Greek numbers in Milesian notation into numeric values.

Milesian notation

See this guide for full documentation of the Milesian notation recogized by GreekScientificOrthography.

Integers

Integer values are identified with the numeric tick, ʹ.

using GreekScientificOrthography
milesian("δʹ")
4
milesian("κδʹ")
24

Thousands are separated by a comma from lower-value digits.

milesian("α,αʹ")
1001

Fractions

Fractional are written as unit fractions values given by the reciprocal value and tagged with a double-prime marker.

milesian("δ″")
0.25
milesian("κδ″")
0.041666666666666664

Other values have to be expressed as the sum of a series of unit fractions. Two-thirds can be written as 1/2 + 1/6, for example.

milesian("β″ ϛ″")
0.6666666666666666

You can of course mix integers and fractions.

milesian("βʹ β″")
2.5

GreekScientificOrthography includes three special characters often used in Greek manuscripts for the values 1/2, 2/3 and 3/4.

milesian("𐅵″")
0.5

Myriads

The basic notation lets you write integers up to 9,999.

milesian("θ,ϡϙθʹ")
9999

10,000 is written with upper-case mu, for “myriad”.

milesian("Μʹ")
10000

It’s treated as a distinct token. As with fractions, the value of the string expression is the sum of the tokens.

milesian("Μʹ α,αʹ")
11001

Myriads can be multiplied! In GreekScientificOrthography this is indicated with a Markdown superscript expression (enclosed in carets).

milesian("Μ^β^")
20000

A myriad myriads is 108!

milesian("Μ^Μ^")
100000000

The biggest integer value we can write in this system is 100009999.

milesian("Μ^Μ^ θ,ϡϙθʹ")
100009999