This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARGH. Who wrote intrinsic_set_exponent.f90?


On Mon, Aug 28, 2006 at 08:57:24AM -0700, Steve Kargl wrote:
>but you should be able to do
> 
>     i = 2345613
>     x = tansfer(i,x)
> 
> to get the bit pattern you want (although this isn't portable
> because of endian issues).

It should work, because both integers and reals share the
same endianness (at least on the "usual" IEEE systems).

	Thomas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]