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

Re: ceiling(), floor(), and data types

Subject: Re: ceiling(), floor(), and data types
From: "Wolfgang Laun wolfgang.laun@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 14 Sep 2017 12:57:56 -0000
Re:  ceiling()
It is preferable to have a result that is of the same type as the argument.
This avoids the (possibly costly) conversion to xs:integer which may have
implementation dependent limitations and loss of precision.

Should a certain quality of a number automatically imply a certain
datatype? Not all "humans" would concur, I think.

Wolfgang



On 14 September 2017 at 12:30, Birnbaum, David J djbpitt@xxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Dear XSL List,
>
> I was surprised to learn today that ceiling() and floor() do not obligatorily
> return a value of type xs:integer. If I've understood correctly that they
> necessarily return a value that a human would consider an integer, is
> there a reason that other return types are permitted?
>
> Thanks,
>
> David

Current Thread

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.