lua-users home
lua-l archive

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


On Mon, 20 Sep 2010, David Kastrup wrote:
>
> I have yet to see any rationale for returning -0 for positive operands.

William Kahan mentions that it makes interval arithmetic work better.

http://www.cs.berkeley.edu/~wkahan/ieee754status/IEEE754.PDF

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.