- Timestamp:
-
Jun 20, 2007, 10:28:23 PM (15 years ago)
- Author:
-
oetiker
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v8
|
v9
|
|
11 | 11 | == Figuring 64bit Floating Point Numbers == |
12 | 12 | |
13 | | The portable RRD format works on all platforms transparently. The first Idea was to use 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. |
| 13 | 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. |
14 | 14 | |
15 | 15 | {{{ |
|