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

RE: how to keep big integer format?

Subject: RE: how to keep big integer format?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 20 Oct 2006 00:21:08 +0100
RE:  how to keep big integer format?
> It works! Thanks a lot!

Yes, it works, but it's not the right solution. Rather than convert both
numbers to floating point, doing floating point arithmetic, and then
adjusting the display format, you should use integer arithmetic throughout.

Michael Kay
http://www.saxonica.com/


> 
> -----Original Message-----
> From: Brian Martinez [mailto:Brian.Martinez@xxxxxxxxxxxx]
> Sent: Thursday, October 19, 2006 3:58 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  how to keep big integer format?
> 
> <xsl:value-of select="format-number(object_id, '#0')"/>
> 
> hth,
> b.
> 
> > -----Original Message-----
> > From: Lin, Jessica [mailto:jlin@xxxxxxxxxxx]
> > Sent: Thursday, October 19, 2006 4:50 PM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  how to keep big integer format?
> > 
> > 
> > 
> > <blueprint>
> >   <marker_object>
> >      <object_id>4967038</objet_id>
> >   </marker_object>
> > </blueprint>
> > 
> > 
> > 
> > 
> > I am using xslt to transform xml to xml and want to update 
> object_id 
> > value by adding 1. But the result returns 4.967039E6 instead of
> 4967039.
> > How can I get what I want?
> > 
> > 
> > 
> > Jessica

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.