Two's complement: Difference between revisions

m
julia example
m (Thundergnat moved page Two's Complement to Two's complement: capitalization policy)
m (julia example)
Line 63:
(8#2)#:-3
1 1 1 1 1 1 0 1</lang>
 
=={{header|Julia}}==
In Julia as in C, if a number n is any integer type, then -n is the two's complement of n, with type preserved. This is true even if n is unsigned.
 
 
=={{header|Raku}}==
4,105

edits