search for: 0b1101

Displaying 1 result from an estimated 1 matches for "0b1101".

Did you mean: 0.1101
2006 Jul 20
3
[OT Ruby] Displaying a binary ?
How to I display the binary equivalent of a number? I tried this: b = 0b1101 puts b # returns decimal value ( 13 ) b.to_bn # generates "unable to convert FIXNUM to STRING.." error. -- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson -------------- next part -------------- An HTML attac...