Welcome to a most fundamental area of computer design: how numbers are represented in hardware! We know that modern computers use and are very efficient at using binary, but wasn't always the case.
https://www.techspot.com/article/2630-number-representation-in-hardware/