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

Issue 82 of the last CL meeting



	Issue 82 of the last common lisp committe meeting states that :
one argument float should always return a single-float. 

	This is not orthogonal with the rest of the numeric functions, because
although the default float result type is that of the most precise argument
overflows from one float format roll onto the float format of the next greater
precision.

	I am not sure if this is what is actually intended by the CL manual,
but it is the way SpiceLisp has been implemented. Perhaps it would be nice if
on the next pass over the numeric chapter, Guy would specify exactly how
overflow is handled, or say that it is implementation specific. 

	If the user wants float to return only single-float, and cause an error
if the argument will not fit can't he simple use (float x 0.0s0) ? But, if the
user wants to return any convenient float, but not overflow or get bogged down
in a high precision shouldn't he be able to do this with single argument float
? 

	- Brian G. Milnes (SpiceLisp NumberHacker)