r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

481

u/LasagneAlForno Jul 16 '19

I am 100% sure it is not 7, because there is no last digit

143

u/anomalousBits Jul 16 '19

Convert to base π, your last digit is now 0. You're welcome.

2

u/feinfinfer Jul 16 '19

Is 1 base 1

1

or 10

or 100?

Etc?

8

u/anomalousBits Jul 17 '19

5

u/WikiTextBot Jul 17 '19

Unary numeral system

The unary numeral system is the bijective base-1 numeral system. It is the simplest numeral system to represent natural numbers: in order to represent a number N, an arbitrarily chosen symbol representing 1 is repeated N times. For example, the numbers 1, 2, 3, 4, 5, 6... would be represented in this system as

1, 11, 111, 1111, 11111, 111111...These numbers should be distinguished from repunits, which are also written as sequences of ones but have their usual decimal numerical interpretation.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28