Kurt Foster on Mon, 15 Jun 2009 17:55:18 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
A12-140 Question about round()
|
- To: Pari Users <pari-users@list.cr.yp.to>
- Subject: A12-140 Question about round()
- From: Kurt Foster <drsardonicus@earthlink.net>
- Date: Mon, 15 Jun 2009 09:54:15 -0600
- Delivery-date: Mon, 15 Jun 2009 17:55:18 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=bBv6AUI36rbO/hlqT3qMuH3GxYCrc/BDyDHGWZXC5pXf5b33T6yKB6my8ozdkkrf; h=Received:Message-Id:From:To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:X-Mailer:X-ELNK-Trace:X-Originating-IP;
- Mailing-list: contact pari-users-help@list.cr.yp.to; run by ezmlm
It occurred to me to wonder what round() did when the input has
fractional part == 1/2. Some examples indicated that if N is an
integer,
round(N + 1/2) == ceil(N + 1/2).
Is this generally the case?
Thanks, KF