lua-users home
lua-l archive

Re: Why do some math functions return -0

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


On 2010年9月20日, 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.

AltStyle によって変換されたページ (->オリジナル) /