in reply to built in function for binary division
Do you mean something like the following?
my $quotient = 0b10010110 / 0b1111; # 150 / 15
print sprintf '%b', $quotient; # prints 1010 (decimal 10)
Yes, this is what I meant. Is it possible to do by any built-in perl function ? Else any hint to achieve that ?
You can work with binary numbers as shown, viz., by preceding the number with 0b, performing the operation, and then formatting the result using sprintf.
Were you thinking of some other binary math function?
Yes I was looking for some binary math subroutine for this, but what you have shown by preceding 0b is also fine.
Thank you !!
An "Acme" module
A Twitter interface
An error message
An unspecified action like "frobnicate"
A substitute curse
The answer to what is for key pls
Dr. Strangelove's missing launch code
It's the internet. It'll be forgotten
No-one will use it for fear of sounding like him
A US law
Caffeine withdrawal symptoms
Results (191 votes). Check out past polls.