Changes between Version 12 and Version 13 of PortableRrdFormat


Ignore:
Timestamp:
Jun 20, 2007, 11:15:32 PM (15 years ago)
Author:
oetiker
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PortableRrdFormat

    v12 v13  
    1212== Figuring 64bit Floating Point Numbers ==
    1313
    14 The portable RRD format should work on all platforms transparently. My first idea was to leverage Suns XDR format for RRD. Unfortunately, XDR does not handle NANs, which are pretty essential for RRDtool. So I did some investigations into binary representation of IEEE 754 floating point data. I found that it is actually pretty simple to bridge the gap between sparc, ppc and x86 at least, so I assume it won't be rocket science todo other CPUs as well. The following program helped a lot in this task. It shows the binary representation of a few 'interesting' floating point values.
     14The portable RRD format should work on all platforms transparently. My first idea was to leverage Suns XDR format for RRD. Unfortunately, XDR does not handle NANs, which are pretty essential for RRDtool. So I did some investigations into binary representation of IEEE 754 floating point data. I found that it is actually pretty simple to bridge the gap between the different architectures. The following program helped a lot in this task. It shows the binary representation of a few 'interesting' floating point values.
    1515
    1616{{{

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.