Hi everyone,
I am on a project here in Germany and am having a tricky problem with decimal points which in Germany (and most other European countries) are represented by a comma instead.
My XSLT transforms seem to work only with a point which isn't such a problem: I just tell the users that the 'point is the comma'. However as soon as we start transferring data (e.g. into Excel), the 'decimal points' confuse Excel which is set to expect the European 'comma' rather than the point.
This means that we get a lot of fields/columns coming over as text when they should be numeric.
To overcome the problem I have used all kinds of strange tricks like, for example, multiplying the number by 1000 (so that I get an integer) and then dividing it again to get the decimal (with either a point or a comma) but this type of solution is very clunky and can be error-prone.
So has anyone else had this problem? Maybe there is a 'wrapping' syntax that I can use to force particular values to be recognised as numeric?
Any tips or pointers to HOWTOs would be gratefully received.
Regards,
Alan Searle
I am on a project here in Germany and am having a tricky problem with decimal points which in Germany (and most other European countries) are represented by a comma instead.
My XSLT transforms seem to work only with a point which isn't such a problem: I just tell the users that the 'point is the comma'. However as soon as we start transferring data (e.g. into Excel), the 'decimal points' confuse Excel which is set to expect the European 'comma' rather than the point.
This means that we get a lot of fields/columns coming over as text when they should be numeric.
To overcome the problem I have used all kinds of strange tricks like, for example, multiplying the number by 1000 (so that I get an integer) and then dividing it again to get the decimal (with either a point or a comma) but this type of solution is very clunky and can be error-prone.
So has anyone else had this problem? Maybe there is a 'wrapping' syntax that I can use to force particular values to be recognised as numeric?
Any tips or pointers to HOWTOs would be gratefully received.
Regards,
Alan Searle
Comment