[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: round()

Subject: Re: round()
From: pandeng@xxxxxxxxxxxx (Steve Schafer)
Date: Tue, 25 May 1999 14:54:55 GMT
rounding upwards
On Tue, 25 May 1999 15:44:08 +0200, you wrote:

> Does anybody has an explanation why, in the halfway cases, the even number
>is the one to be returned (instead of the bigger one, as is usual and would
>be expected)?

This is sometimes called "banker's rounding." It's purpose is to
eliminate the slight bias that occurs when always rounding upwards.
The IEEE floating-point specification, which most CPUs adhere to,
specifies this type of rounding as the default behavior.

-Steve


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • round()
    • Jakob Fix - Tue, 25 May 1999 15:44:08 +0200
      • Steve Schafer - Tue, 25 May 1999 14:54:55 GMT <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.