oscbyspro / Ultimathnum

Binary arithmetic reimagined in Swift
Apache License 2.0
9 stars 1 forks source link

Add: NaturalInteger #112

Closed oscbyspro closed 1 month ago

oscbyspro commented 1 month ago

Unsigned systems integers are the most useful type of integers and they kind of deserve a name. I also noticed that A) 2-by-1 signed division is rather useless and B) 2-by-1 signed division can be (and is) derived from 2-by-1 unsigned division. So I could lower that requirement to NaturalInteger.

oscbyspro commented 1 month ago

Hm. Maybe the unchecked part of signed 2-by-1 division is useful, but error handling part isn't (#113).