in reply to integer value to hex value
See hex.
>perl -wMstrict -le "my $i = 100; my $x = hex $i; print $x; printf qq{0x%x \n}, $x; ;; $i = '200'; $x = hex $i; print $x; printf qq{0x%x \n}, $x; " 256 0x100 512 0x200
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: integer value to hex value
by shyam123 (Initiate) on Dec 05, 2012 at 11:21 UTC | |
by eyepopslikeamosquito (Archbishop) on Dec 05, 2012 at 11:39 UTC | |
by rovf (Priest) on Dec 05, 2012 at 11:38 UTC |
In Section
Seekers of Perl Wisdom