💾 Archived View for goodclover.xyz › other › thoughs-on-unary.md captured on 2021-12-05 at 23:47:19.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2022-06-04)

-=-=-=-=-=-=-

# How I think **unary** could work

Note: This is just me going on a brain gander.

Unary only has one digit, you might be led to think that this would be `0`,
but that would make unary useless so `1` is used instead.

Here is a comparison of unary to binary:

Binary:

32 16 8 4 2 1 . 1/2 1/4 1/8

Unary:

1 1 1 1 1 1 . 1/1 1/1 1/1


Also yes, binary can have a fractional part. It's just that there's not really a use case for it as computers can't do that.

Zero is represented as the empty string `​`.

It's just tally marks with extra weirdness.

## Unary operations

### Addition

`1 + 1 = 11`  
`11 + 1 = 111`  
`111 + 11 = 11111`  

### Subtraction

`111 - 1 = 11`  
`1 - 1 =`  
`1 - 111 = -11`  

### Multiplication

`11 × 1 = 11`  
`111 × 11 = 111 + 111 = 111111`  
`111 × 11 = 11 + 11 + 11 = 111111`  

### Division

`11 / 1 = 11`  
`1111 / 11 = 11`