Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: built in function for binary division

by moritz (Cardinal)
on Jan 11, 2013 at 06:34 UTC ( #1012806=note: print w/replies, xml ) Need Help??


in reply to built in function for binary division

All arithmetics in Perl is performed in binary. Though that's not really relevant, because the outcome would be the same if it were performed in any other base.

$ perl -wE 'say 4 + 5' # uses binary addition under the hood 9

It's just the input and output of numbers that decimal by default; but as others have shown you, there are ways to achieve binary input too.

So I guess the real question is: what do you want to achieve?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012806]
help
Chatterbox?
[stevieb]: in a C++ header file, if a function declaration is listed twice with each listing containing different params, that's just essentially allowing one function accept two different arg lists, yes?
[stevieb]: int func(int x, int y);
[stevieb]: int func(int x);
[stevieb]: For example

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-06-28 23:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.