in reply to Re: built in function for binary divisionin thread built in function for binary division
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 !!
You're most welcome, ghosh123!
An Englishman in New York
An American Werewolf in London
An American in Paris
The Innocents Abroad
An Idiot Abroad
Robinson Crusoe on Mars
A Connecticut_Yankee in King Arthur's Court
There and Back Again
Travels into Several Remote Nations of the World
Results (97 votes). Check out past polls.