[R] Converting IEEE Float in 16 char hex back to float

xlr82sas xlr82sas at aol.com
Sat Feb 27 06:43:43 CET 2010


If I do the following


I have this 16 byte character string


This is the exact hex16 representation of PI in
IEEE float that R uses in Intel 32bit(little endian) Windows
SAS uses the same representation. 11 bit exponent and 53 bit mantissa.

I want to do is recreate the float exactly from the 16 char hex

something like


or in SAS

put MyPI=;


What I am trying to do is set up a lossless
transfer method from SAS to R

View this message in context: http://n4.nabble.com/Converting-IEEE-Float-in-16-char-hex-back-to-float-tp1571710p1571710.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list