[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FLOAT-SIGN and SIGNUM



Extending FLOAT-SIGN to two arguments is useful for the same reasons
as extending SIGNUM (though I'm not sure we really voted for the latter).
The handling of -0.0 is the crux, as Moon points out.  I would assume that
	(SIGNUM 0.0) => 0.0		(FLOAT-SIGN 0.0) => 1.0
	(SIGNUM -0.0) => -0.0		(FLOAT-SIGN -0.0) => -1.0
	(SIGNUM 0.0 x) => 0.0		(FLOAT-SIGN 0.0 x) => |x|
	(SIGNUM -0.0 x) => -0.0		(FLOAT-SIGN -0.0 x) => -|x|
which are distinct useful behaviors, I think.
--Guy