RE: [xsl] Magic numbers

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

> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: 18 November 2003 13:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] 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