[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Saxon Div Issue
Dak, in the response below you are misunderstanding our use of the
terminology. We are talking about the representation of the number
internally in memory, we are not talking about whether the element or
the attribute is a number or not a number. We are not talking about
radix. We are talking about internal representation.
As Martin says, the numeric value of an element or an attribute is represented in memory as a double-length binary value unless you tell it differently. If you are using XSLT 2.0 you can tell the processor to treat it differently in memory by casting the element or attribute value into a decimal representation internally. Then, when you do arithmetic with decimal representations of values, the result is a clean decimal result. There is no loss of detail as when happens when using binary. So, in your pseudo code below, you do know that it will be a double-length binary value because you have not cast it to be anything else. Radix has nothing to do with this discussion. I hope this helps. . . . . . Ken At 2015-01-19 16:06 +0000, Mailing Lists Mail daktapaal@xxxxxxxxx wrote: >I wouldn't know if it will be a double that I will be a decimal. Ignore the above inebriated statement.. All I meant was, I wouldnt know if it will be a decimal.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|