delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/23/16:50:51

From: "Ben Alford" <benjamin DOT alford AT surrey DOT uni DOT ntl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Binary to double in C
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <bKvC4.964$ED.25221@news2-win.server.ntlworld.com>
Date: Thu, 23 Mar 2000 21:09:08 -0000
NNTP-Posting-Host: 212.250.65.73
X-Complaints-To: abuse AT net DOT ntl DOT com
X-Trace: news2-win.server.ntlworld.com 953845767 212.250.65.73 (Thu, 23 Mar 2000 21:09:27 GMT)
NNTP-Posting-Date: Thu, 23 Mar 2000 21:09:27 GMT
Organization: ntl News Service
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi

I hope some can help me with my problem with C.

I am using fread to read in a binary line as follows:
char Data[9];

    fread(Data, sizeof(double),1,Output);

I want to take the binary string in Data and get the value of it as a
double.

Any suggestions would be most appreciated.

thanks

Ben Alford




- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019