comp.lang.ada
 help / color / mirror / Atom feed
* Comparing Floating Point Values
@ 2006-12-13 16:14 markp
  2006-12-13 16:45 ` Adam Beneschan
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: markp @ 2006-12-13 16:14 UTC (permalink / raw)


I was wondering if there was a convention for comparing 2 floats
dealing with significant digits. For example, if I had 2 variables (x
and y) and wanted to see if they were equal in an if statement, is
there a standard way to do a compare based on "x" significant digits?

Thank you.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-12-14 22:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-13 16:14 Comparing Floating Point Values markp
2006-12-13 16:45 ` Adam Beneschan
2006-12-13 16:51 ` Ludovic Brenta
2006-12-13 20:02 ` Jeffrey R. Carter
2006-12-13 20:13 ` Gautier
2006-12-14  2:21 ` Steve
2006-12-14 22:22   ` Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox