title: how to convert double between host and network byte order?
body: <p>Could somebody tell me how to convert double precision into network byte ordering.
  I tried </p>
  
  <pre><code>uint32_t htonl(uint32_t hostlong);
  uint16_t htons(uint16_t hostshort);
  uint32_t ntohl(uint32_t netlong);
  uint16_t ntohs(uint16_t netshort);
  </code></pre>
  
  <p>functions and they worked well but none of them does double (float) conversion because these types are different on every architecture. And through the XDR i found double-float precision format representations (<a href="http://en.wikipedia.org/wiki/Double_precision" rel="nofollow">http://en.wikipedia.org/wiki/Double_precision</a>) but no byte ordering there. </p>
  
  <p>So, I would much appreciate if somebody helps me out on this (C code would be great!).
  NOTE: OS is Linux kernel (2.6.29), ARMv7 CPU architecture.</p>