Using SQL Server 2000
zero are not showing while using a float.
Query
insert into table1 values ('01.10')
insert into table1 values ('10.50')
insert into table1 values ('02.02')
Output
Values (datatype is float)
01.1
10.5
02.02
...
How to show the last zero’s also
Expected Output
Values (datatype is float)
01.10
10.50
02.02
...
Why are you using FLOAT? I find that in a lot of cases people use FLOAT when they don’t understand its limitations or peculiarities. For storing decimal values with 2 decimal places, I would use decimal instead.
Results: