Hello Laurent_R,
Thank you for your time and effort replying to my question. I do have a solution for positive integers also with sprintf but I measured the process time, and using pack it is 50% faster. Even though that I am using subroutines, still is 50% faster. But thanks a lot for the suggestion, it is always nice to have alternatives.
In reply to Re^2: How to convert between decimal and binary for negative numbers?
by thanos1983
in thread How to convert between decimal and binary for positive/negative numbers?
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |