in reply to Multiply Hex values
Don't reduce them to "decimal", convert them to numbers (hex), multiply them and convert back to hexadecimal representation (sprintf):
perl -wle "print sprintf '%08x', hex(shift)*hex(shift)" 12340f 33
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Multiply Hex values
by kepler (Scribe) on Feb 09, 2017 at 15:15 UTC | |
Re^2: Multiply Hex values
by GotToBTru (Prior) on Feb 09, 2017 at 13:37 UTC | |
by Corion (Patriarch) on Feb 09, 2017 at 13:44 UTC |
In Section
Seekers of Perl Wisdom