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 Content-Type: text/plain; charset=us-ascii 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