Right way to show numbers in binary/hex/octal in your opinion?

rikki cattermole rikki at cattermole.co.nz
Thu Dec 30 14:12:23 UTC 2021

On 31/12/2021 2:52 AM, rempas wrote:
>> That's why I gave you the "long" example. We don't have (yet) a 
>> 128-bit type. That was the idea in the first place, language has a 
>> limited range of numbers. And when we will have the cent, we will lack 
>> a 256-bit type.
> Well 128-bit, 256-bit, 512-bit are not true types. Our computers have 
> 64-bit registers. To go above that, you use multiple registers that hold 
> a part of the value each. At least that's what I read in a PDF about 
> assembly and it makes sense.

And before 64bit registers we had (and still do) emulation for that as well.

All this talk is irrelevant, just add fixed point types and you can have 
whatever precision you want.

This also solves the issue with money. So it is a pretty compelling 

More information about the Digitalmars-d mailing list