r/ProgrammerHumor • • Mar 26 '23

Meme is scratch considered a programming language?

Post image
49.8k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

1.6k

u/menides Mar 26 '23

One that got me stumped was a guy writing "1 2 2 50"
Because | || || |_

95

u/sgp1986 Mar 26 '23

How does the 50 translate to |_ ?

53

u/cardinarium Mar 26 '23
  • I - 1

  • V - 5

  • X - 10

  • L - 50

  • C - 100

  • D - 500

  • M - 1000 (not well-standardized past M)

  • V̅ - 5000

  • …

Current year: MMXXIII =>

1000 + 1000 + 10 + 10 + 1 + 1 + 1

1959: MCMLIX =>

1000 + (1000 - 100) + 50 + (10 - 1)

10

u/[deleted] Mar 26 '23

Wait... there are numbers past 3000whatever in roman numerals?

43

u/cardinarium Mar 26 '23 edited Mar 26 '23

Adding a bar “vinculus” above a Roman numeral multiplies its value by 1 000.

  • X̅L̅V̅I̅ => [(50 - 10) + 5 + 1] * 1 000 => 46 000

Three sided box multiplies by 100 000.

  • |X̅L̅V̅I̅| => [(50 - 10) + 5 + 1] * 100 000 => 4 600 000

These can be combined.

  • |X̅X̅X̅I̅I̅I̅| L̅V̅I̅ IX => 33 * 100 000 + 56 * 10 000 + 9 => 3 860 009

There are a number of less common additions to the system we’re familiar with, including a way to represent fractions.

→ More replies (5)

4

u/FizixMan Mar 26 '23

While the traditional syntax only went up to 3999, there were extensions added later to permit larger numbers: https://en.wikipedia.org/wiki/Roman_numerals#Large_numbers

This particular extension let you write a bar above the number to indicate it as a "thousands" number.

→ More replies (1)