home *** CD-ROM | disk | FTP | other *** search
-
- function dtof(B: double): real;
- {convert 8 byte double to real}
- var
- PasReal: real;
- R: array [0..5] of byte absolute PasReal;
- begin
- PasReal := 0;
- move(B[2],R[1],5);
- R[0] := B[7];
- dtof := PasReal;
- end;
-
- procedure ftod(PasReal: real; var B: double);
- {convert real to 8 byte double}
- var
- R: array [0..5] of byte absolute PasReal;
- begin
- fillchar(B[0],8,0);
- B[7] := R[0];
- move(R[1],B[2],5);
- end;
-