I need to round off a number of data type numeric nearest to 2 places in SQL Server
Eg.,
Input: 123.10000000
Output: 123.10
Thanks and Regards,
Ismail
I need to round off a number of data type numeric nearest to 2 places in SQL Server
Eg.,
Input: 123.10000000
Output: 123.10
Thanks and Regards,
Ismail
You will need to convert it:
Select Convert(numeric(19,2), @value)
You can use the Round function too to perform the rounding:
Select Round(@Value, 2)
Would CONVERT(DECIMAL(12,2), ROUND(123.10000000, 2)) do the trick?
You can try:
select round(123.10000000, 2)
or
select cast(123.10000000 as decimal(12,2))