Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: built in function for binary division

by Kenosis (Priest)
on Jan 11, 2013 at 05:52 UTC ( #1012800=note: print w/replies, xml ) Need Help??

in reply to Re^2: built in function for binary division
in thread built in function for binary division

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?

Replies are listed 'Best First'.
Re^4: built in function for binary division
by ghosh123 (Monk) on Jan 11, 2013 at 06:31 UTC

    Hi Kenosis

    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!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012800]
[chacham]: android studio is such a pain
[Corion]: I found Android Studio quite nice as a Java IDE, but then, I didn't try anything serious with it

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-03-29 07:53 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (344 votes). Check out past polls.