We don't bite newbies here... much | |
PerlMonks |
Re^6: Can I access and use UV types from perl?by Don Coyote (Hermit) |
on Nov 17, 2019 at 22:46 UTC ( [id://11108838]=note: print w/replies, xml ) | Need Help?? |
Yes the image helped, I can see from that that perhaps this is what happens. To calculate a two's complement number take the difference of the highbit masked number, with the complement mask of the highbit number. The number being negative when the highbit is set, essentially saying complement mask minus the highbit mask number. We could use pairs of numbers, such that the 'highbit' could be any binary number and the difference found between that and its pair then resolves into an integer. It's a different way of storing and operating on the numbers. update added example code
But, we get overlaps.
note: row polynumbers are read opposite significant highbit first. That is, if these are 'N'etwork order they should be read 'V'ax order. This illustrates the concept. edit added whitespace, and note
In Section
Seekers of Perl Wisdom
|
|