unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* min, max and nans
@ 2003-05-05 23:26 Kevin Ryde
  2003-05-17 20:02 ` Marius Vollmer
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin Ryde @ 2003-05-05 23:26 UTC (permalink / raw)


While nosing around mpz_cmp_d in min and max, I noticed

	guile> (max +nan.0 0)
	+nan.0
	guile> (max 0 +nan.0)
	0.0

which strikes me as a bit inconsistent.

Is there a theory on what min and max should do with nans?  I'd think
returning nan if any argument is a nan would be a good idea.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


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

end of thread, other threads:[~2003-06-18 23:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-05 23:26 min, max and nans Kevin Ryde
2003-05-17 20:02 ` Marius Vollmer
2003-05-30  0:20   ` Kevin Ryde
2003-06-04 16:08     ` Kevin Ryde
2003-06-05 12:48       ` Marius Vollmer
2003-06-06 16:03         ` Mikael Djurfeldt
2003-06-06 23:17           ` Marius Vollmer
2003-06-15  0:17   ` Kevin Ryde
2003-06-18 23:36     ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).