Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Multiply Hex values

by Anonymous Monk
on Feb 09, 2017 at 16:13 UTC ( #1181543=note: print w/replies, xml ) Need Help??


in reply to Re: Multiply Hex values
in thread Multiply Hex values

First, that's exactly the right answer.

To quibble a little bit, computers don't manipulate numbers in the abstract, they store them in binary. (You can just say "internal representation" if you want to pretend that anyone is using a non-binary computer.)

Now I'm just getting silly. You could, technically, write code to multiply numbers by directly working on their (decimal or hex) string representations, using the grade school long-form method. It would be a million times slower, because you're emulating something the computer can do in one instruction, but you could do it.

So, once again, listen to Laurent. Put the numbers in a form the computer can work with easily, let it do its magic, then convert them back to the form you want to look at.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1181543]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2021-05-09 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (101 votes). Check out past polls.

    Notices?