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

Re: Implicit casting from double to float

Subject: Re: Implicit casting from double to float
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 07 Jan 2009 12:24:09 +0000
Re:  Implicit casting from double to float
--On Wednesday, January 07, 2009 17:35:01 +0530 Mukul Gandhi wrote:

This could be a more accurate example for the feature I described,

<xsl:variable name="num" select="xs:double('1e4')" as="xs:float" />
<xsl:value-of select="$num" />

This runs fine with Saxon 9.x.

As it should given the definition of the language.


<http://www.w3.org/TR/xpath20/#promotion> seems to be the appropriate reference for this.

--
Owen Rees
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN

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.