|
From: | chinmay albal |
Subject: | rounding floating numbers to -infinity |
Date: | Mon, 05 Jan 2004 15:18:34 +0530 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
Hi,The glibc manual states "If a result is too small to be represented as a denormalized number, it is rounded to zero. However, the sign of the result is preserved" If +.99999... is to be rounded to -infinity then the nearest integer is a positive zero ( + 0 ) if a the sign is to be preserved.
But the result that Iam getting is -0.Please let me know if this is correct or Iam interpreting the rounding off function wrong.
Regards - Chinmay
[Prev in Thread] | Current Thread | [Next in Thread] |