When will you implement cent and ucent?

mee6 mee6 at lookat.me
Fri Apr 1 14:23:09 UTC 2022


On Friday, 1 April 2022 at 07:22:21 UTC, Walter Bright wrote:
> On 3/31/2022 10:33 PM, Petar Kirov [ZombineDev] wrote:
>> [...]
>
> A library 128 bit type would be pretty easy to do, now that the 
> computation functions are worked out. 256 bits could leverage 
> that.
>
> But frankly, with all the jawboning around it could have 
> already been implemented. Just take:
>
>   https://github.com/dlang/phobos/blob/master/std/complex.d
>
> and de-template it, and delete most of it, and you've got 
> struct Int128 and struct Uint128. The hard part:
>
>   
> https://github.com/dlang/druntime/blob/master/src/core/int128.d
>
> is already done.
>
> Whoever does it first gets the glory :-)

I'd do it for money lol


More information about the Digitalmars-d mailing list