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?
Writing the examples above using printf took me probably about 5 to 6 minutes, perhaps even less, I know that using pack will probably take me hours, because the syntax is quite complicated (or perhaps because I don't master it well enough, but that does not really change the net result). Being an independent consultant, I know what my time is worth, and I know that I will go for the smaller developer's time consuming option, except if high performance is really badly needed.
Oh, and BTW,the solution I offered seems to work also with negative integers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to convert between decimal and binary for negative numbers?
by BrowserUk (Patriarch) on Sep 19, 2014 at 00:02 UTC | |
by Laurent_R (Canon) on Sep 19, 2014 at 07:08 UTC | |
|
Re^4: How to convert between decimal and binary for negative numbers?
by thanos1983 (Parson) on Sep 19, 2014 at 11:43 UTC |