www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/12/22:15:37

From: ff AT kom DOT auc DOT dk (Frank Frederiksen)
Newsgroups: comp.os.msdos.djgpp
Subject: Q: detecting valid floating point numbers?
Date: 9 Dec 1996 12:14:04 GMT
Organization: Department of Computer Science at Aalborg University
Lines: 23
Message-ID: <58gvqc$26p@newsfeed.cs.auc.dk>
NNTP-Posting-Host: hercules.kom.auc.dk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi there,

In our research project we are transmitting some floating point
numbers over a radio channel (the position of a mobile transmitter).

Our problem is that we sometimes get bit errors, i.e., some of the
bits in the numbers are wrong. When we analyze the data, we then
sometimes get a 'exiting due to SIGFPE' followed by a stack trace.

When we symify the program the first two lines are:
__doprnt+1432
_fprintf+105

So, is there a (simple)way of detecting if a floating point number
is legal, before printing it, or do we have to investigate the
numbers individually to see if they are valid numbers?

Thanks in advance.

-- 
  \Frank Frederiksen,
   Aalborg University,
   DENMARK

- Raw text -


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