Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi DEC - Format (https://www.delphipraxis.net/82321-dec-format.html)

marabu 11. Dez 2006 14:36

Re: DEC - Format
 
Herzlich willkommen in der Delphi-PRAXiS, Hami.

Delphi-Quellcode:
function DecToIntel(var float): Single;
var
  Intel: LongRec absolute Result;
begin
  Intel.Hi := LongRec(float).Lo;
  Intel.Lo := LongRec(float).Hi;
  if Cardinal(Intel) <> 0 then
    Dec(Intel.Bytes[3]);
end;
Getippt und nicht getestet.

Freundliche Grüße vom marabu

Hami 11. Dez 2006 17:32

Re: DEC - Format
 
Hallo,
Danke marabu, funktioniert einwandfrei. Und verstanden hab ich es sogar :-D .
Gruß
Daniel


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:17 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz