in reply to Re^2: How to convert between decimal and binary for negative numbers?
in thread How to convert between decimal and binary for positive/negative numbers?

But I was trying to get a solution for small negative numbers, no more than -127 which is the limit of 8 bit int.

If you want to pack 8-bit numbers, do not use 32-bit templates; nor 'B32'.

Think! read, and think again.

(Hint:8-bit signed numbers; 'B8' and 'c'...)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^3: How to convert between decimal and binary for negative numbers?

Replies are listed 'Best First'.
Re^4: How to convert between decimal and binary for negative numbers?
by thanos1983 (Parson) on Sep 18, 2014 at 22:01 UTC

    Hello again BrowserUk,

    I could not get a better answer than that. :D I will work on it, I am under some pressure to finish something else but I would love to work on it. I need to read thoroughly the documentation I agree with you 100%. Again thank you for your time and effort. I will get back to you with an answer in a few days. Hopefully soon. :D

    Seeking for Perl wisdom...on the process of learning...not there...yet!