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

RE: Magic numbers

Subject: RE: Magic numbers
From: Yago Alvarado <Yago.Alvarado@xxxxxxxxxxxxxx>
Date: Tue, 18 Nov 2003 14:31:29 -0000
xsl number of decimals

> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: 18 November 2003 13:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Magic numbers
> 
> 
> It is the result for 0.05 that is more surprising than the 
> result for 0.07.
> 
> You wrote your numbers using decimal ".05" or ".07" but most computers
> these days are binary machines.


What I found surprising was the lack of consistency rather than the
number of decimals shown in the result ...

7 is the only number that produces a result with many decimals...
I would expect all the numbers behave that way or to behave in the 
other way i.e. only a couple of decimals... but I didn't expect it
to behave in a different way depending on the number.

7 is the only number that shows that behaviour. I tried all the others,
2,3,4,5,6,8 and 9 and only 7 behaves that way...

I guess I'll have to start using format-number when the number is 7. ;-)


Regards,
Yago

_____________________________________________________________________
This e-mail is confidential and is intended solely for the use of the individual or entity to whom it is addressed.  If you are not the intended recipient and you have received this e-mail in error then any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. You should contact the sender by return e-mail and delete and destroy all the information from your system.  Any views or opinions presented are solely those of the author and do not necessarily represent those of CPM UK Limited.  This email does not form part of a legally binding agreement.  We have taken precautions to minimise the risk of transmitting software viruses or trojans, but we advise that you carry out your own virus checks on any attachments to this message.  We cannot accept liability for any loss or damage caused to your software, hardware or system.

Please note that all messages sent to CPM UK Limited are actively monitored for inappropriate material and/ or content.

More information about CPM can be found at our website at: http://www.cpm-int.com

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


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.