Re: [basex-talk] Rounding/parsing decimal vs float

2017-11-01 Thread Marco Lettere
Awesome Leo, thanks! Similar to what I was thinking about but with a lot or after-thought optimization! Great suggestion. M. Il 01 nov 2017 1:59 PM, "Leonard Wörteler" < leonard.woerte...@uni-konstanz.de> ha scritto: > Hi Marco, > > I also do not know of a built-in way to do this, but here is my

Re: [basex-talk] Rounding/parsing decimal vs float

2017-11-01 Thread Marco Lettere
Thanks Kristian, unfortunately this introduces rounding errors which I'm trying to avoid because managing units, measures and monetary amounts. M. Il 01 nov 2017 12:57 PM, "Kristian Kankainen" ha scritto: You need to use xs:float or xs:double instead of xs:decimal to be able to use the 'e' or 'E

Re: [basex-talk] Rounding/parsing decimal vs float

2017-11-01 Thread Kristian Kankainen
You need to use xs:float or xs:double instead of xs:decimal to be able to use the 'e' or 'E' as the exponent separator. Br, Kristian K1. nov 2017 13:18 kirjutas kuupäeval Marco Lettere : > > Hi all, > > I thought of asking this in parallel of hacking my own parsing procedure > ... > > Is ther

[basex-talk] Rounding/parsing decimal vs float

2017-11-01 Thread Marco Lettere
Hi all, I thought of asking this in parallel of hacking my own parsing procedure ... Is there a native way to parse scientific notation string into xs:decimal since a direct casting (xs:decimal("1e1")) is not allowed? Thanks, Marco.