error with non-standard number formatting
Posted: Fri 13 Jan 2006 13:15
Hello,
I get a strange error.
I modify my regional settings,
select English(United States) for Standards and Formats,
click on "customize",
on "Numbers" tab change Decimal symbol to "," (comma) and Digit grouping symbol to " " (space),
on "Currency" tab change Decimal symbol to "," (comma) and Digit grouping symbol to "." (period),
apply settings,
start your demo: "Query.exe" and open the query: "select cast(1234/100 as numeric(15,3))"
the result shown to me is 12000.
Thats wrong. With default settings, the correct result 12 is shown.
The error only occurs for numeric columns.
I used last Version 3.55.2.22, I tried Delphi 5 and Delphi 7 (German Version).
Is it an Sdac Error or a Delphi error?
Thanks for your help.
I get a strange error.
I modify my regional settings,
select English(United States) for Standards and Formats,
click on "customize",
on "Numbers" tab change Decimal symbol to "," (comma) and Digit grouping symbol to " " (space),
on "Currency" tab change Decimal symbol to "," (comma) and Digit grouping symbol to "." (period),
apply settings,
start your demo: "Query.exe" and open the query: "select cast(1234/100 as numeric(15,3))"
the result shown to me is 12000.
Thats wrong. With default settings, the correct result 12 is shown.
The error only occurs for numeric columns.
I used last Version 3.55.2.22, I tried Delphi 5 and Delphi 7 (German Version).
Is it an Sdac Error or a Delphi error?
Thanks for your help.