Skip to content

DECFLOAT

DECLARE @myDecfloat DECFLOAT;
SET @myDecfloat = 10.567;
SELECT @myDecfloat as Value;
Value
-----------
10.567

In the SQL code example, a DECFLOAT variable ‘@myDecfloat’ is declared and assigned the value “10.567”. Then, a SELECT statement is used to view the value of ‘@myDecfloat’. The output shows the stored value “10.567”.