I have the following code:
DECLARE @A FLOAT
SET @A = 26069175.1934196
SELECT @A
SELECT CAST (@A AS DECIMAL(6,2))
The result I'm looking for is: 26069.19
Which are the first 6 integers from left to right and 2 decimals in the same way.
I have the error:
Arithmetic overflow error converting float to data type numeric.