Two's complement: Difference between revisions
Content added Content deleted
(Added Wren) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: typo) |
||
Line 128: | Line 128: | ||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
By default Rakus integers are arbitrary sized, theoretically of infinite length. You can't really take the twos complement of an infinitely long number; so, we need to specifically |
By default Rakus integers are arbitrary sized, theoretically of infinite length. You can't really take the twos complement of an infinitely long number; so, we need to specifically use fixed size integers. |
||
There is a module available from the Raku ecosystem that provides fixed size integer support, named (appropriately enough.) [https://raku.land/github:thundergnat/FixedInt FixedInt]. |
There is a module available from the Raku ecosystem that provides fixed size integer support, named (appropriately enough.) [https://raku.land/github:thundergnat/FixedInt FixedInt]. |