![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#3
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#4
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#5
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#6
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#7
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#8
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#9
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
#10
| |||
| |||
|
|
I'm Running SQL 2005 and Microsoft SQL Server Management Studio (9.00.3042.00) and experiencing strange behaviour when results from my queries are displayed. My regional settings are set to Icelandic (comma as decimal separator and dot as thousand separators). Running the following queries SELECT CAST(5 AS NUMERIC(5,2)) / CAST(2 AS NUMERIC(5,2)) SELECT 5.0 / 2.0 SELECT CAST(5 AS float)/ CAST(2 AS float) Give me following results 2.50000000 2.500000 2,5 Only the last one gives me the result according to my regional settings. Anyone else experienced similar problems and/or now a solution to this problem. |
![]() |
| Thread Tools | |
| Display Modes | |
| |