I have a big problem with calculations in sql(sql server management studio)
I have a variable declare @KursEur decimal(32,10) = 4.2617000000
I need 10 places after dot presicion
I need the result of multiplying the values from the database with a variable with 10 places after the dot precision
ColumnName = decimal(32,10)
examples:
select ColumnName*@KursEUR
from TableName
Result: 364947858427.467456
select ColumnName*4.2617000000
from TableName
Result: 364947858427.46745556204873 <-i need this result
I tried it but it doesn't give the expected result :
select CAST(ColumnName as numeric(32,10))* CAST(@KursEUR as numeric(32,10))
from TableName
select CAST(ColumnName as float)* CAST(@KursEUR as float)
from TableName
select CAST(ColumnName as numeric(32,10))* CAST(@KursEUR as float)
from TableName
select CAST(ColumnName as float)* CAST(@KursEUR as numeric(32,10))
from TableName
select ColumnName* CAST(@KursEUR as float)
from TableName;
select ColumnName* CAST(@KursEUR as numeric(32,10))
from TableName
select CAST(ColumnName as numeric(32,10))* @KursEUR
from TableName
select CAST(ColumnName as float)* @KursEUR
from TableName
select CAST(ColumnName*@KursEUR as float)
from TableName
select CAST(ColumnName*@KursEUR as numeric(32,10))
from TableName