Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 07.06.04 14:40 
Hi,

ich steh grad vor nem kleinen Problem...

hat wer ne Ahnung wie ich in ner Datei etwas mit dem "IEEE 854" Format schreibe???

Ich muß einfach nur einen Float wert (bzw Single) in diesem Format in ne Datei schreiben *g* Aber KA wie... :roll:

TFileStream und WriteLn scheinen leider irgendein anderes Format zu benutzen... :(

Gibt's da irgendwas???

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
Sven
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 314


D6 Ent, K3 Pro (patched)
BeitragVerfasst: Mo 07.06.04 14:52 
Suche bei Google IEEE 854 Da findet sich eine Menge zu dem Thema. Alternativ die Suchmaschine TEOMA verwenden.
Und Delphi sollte eigentlich in dem Format speichern :shock:

_________________
MDK 9.1, Kernel 2.4.21, KDE 3.1 Kylix 3 Pro (patched), nutze aber auch Windows
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 07.06.04 14:57 
Zitat:
2.1.3.3. Gleitkommazahlen Für Berechnungen mit reellen Zahlen oder sehr großen Ganzzahlen
wird ein anderes Zahlenformat benötigt. An die Genauigkeit werden hier meist keine so
hohen Anforderungen gestellt wie bei Ganzzahlen. Durchgesetzt hat sich der IEEE-Standard,
der eine gute Kombination aus Wertebereich und Genauigkeit liefert:
Standard IEEE 754 IEEE 854
(32 Bit) (64 Bit)
Bit Bit
Vorzeichen S 31 (1 Bit) 63 (1 Bit)
Exponent E 23–30 (8 Bit) 52–62 (11 Bit)
Mantisse F 0–22 (23 Bit) 0–51 (52 Bit)


Gefunden hier (PDF)

Ansonsten spuckt Google (Suche bei Google LINK 1; Suche bei Google LINK 2) auch einiges aus.

Gruß