Quantcast
Channel: Decimal to Hexadecimal conversion working in Linux but not in Unix - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 2

Answer by xhienne for Decimal to Hexadecimal conversion working in Linux but not in Unix

$
0
0

You didn't tell us what is your Unix and your shell. The problem lies probably in the leading 0 which instructs printf to interpret the number as an octal number, which it can't be (due to the 8 and 9 digits).

Just remove the leading 0.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>