Skip to content
Prev 180664 / 398502 Next

Output of binary representation

Thanks, Jim. While that is still in hex, I find I can get the binary
represntation using Gabor's gsubfn() function, provided the A-F isw
changed to a-f in setting up his 'binary.digits', and the output is
explicitly cast to character:

gsubfn("[0-9a-f]", binary.digits,
       as.character(writeBin(pi,raw(),endian='big')

Ted.
On 17-May-09 20:04:58, jim holtman wrote:
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 17-May-09                                       Time: 22:06:59
------------------------------ XFMail ------------------------------