When will you implement cent and ucent?
Iain Buclaw
ibuclaw at gdcproject.org
Sat Apr 2 10:17:09 UTC 2022
On Monday, 28 March 2022 at 18:37:27 UTC, Guillaume Piolat wrote:
> On Saturday, 26 March 2022 at 19:30:13 UTC, Walter Bright wrote:
>> https://dlang.org/phobos/core_int128.html
>
> I tried to find faults in its divide and modulo so that I could
> rant about wideint.d being rewritten, but actually core.int128
> seems to be better and correct (possibly more correct with
> negative modulo even). :)
>
Thanks, I took a page from hacker's delight when re-implementing
the divmod() function, and did quite a bit of back and forth
comparing results to wolfram. :-)
More information about the Digitalmars-d
mailing list