You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Thorbjoern Ravn Andersen <tr...@mrbean.stibo.dk> on 2001/03/06 07:36:52 UTC

Re: Cannot make Xalan recognize '.' in a number.

* Myriam_Midy@lotus.com <My...@lotus.com> [Feb 01. 2001 16:44]:
> 
> Hi,
> I'm not sure which version of xalan is in Websphere3.5, but I know that
> it's pretty backlevel. The current versions of xalan (1.2.2 and 2.0) are
> returning 26 (which I believe to also be wrong since I think we should be
> rounding up and returning 27). We will certainly address the issue in
> XalanJ2. Thanks for pointing this out.

Thank you.

I would like clarification though - I thought XSLT can do floating point
arithmetic.  Am I wrong?

-- 
  Thorbjørn Ravn Andersen                   "...sound of... Tubular Bells!"
  http://bigfoot.com/~thunderbear

Re: Cannot make Xalan recognize '.' in a number.

Posted by Michael Beddow <mb...@mbeddow.net>.
XSLT does floating point strictly according to IEEE 754. For people
immersed in Java (or assembler on most modern processors) that should
bring no surprises. Everyone else may be in for a few tricky moments.
All this is well summarized in Mike Kay's XSLT reference, pp.81-84.
The other thing to bear in mind is that in XSLT, the type belongs to
the value, rather than the variable.

Michael
------------------------------------------
Michael Beddow
http://www.mbeddow.net/

>
> I would like clarification though - I thought XSLT can do floating
point
> arithmetic.  Am I wrong?
>
> --
>   Thorbjørn Ravn Andersen                   "...sound of... Tubular
Bells!"
>   http://bigfoot.com/~thunderbear
>