I am trying to figure out why SQL Server is returning 9.999999999999999e+004
when it's supposed to return 1.000000000000000e+005
from the following sql statement:
select Convert(
varchar(32),
round(cast('123456' as Float), -5),
2
)
Even more interesting is that the following statement correctly returns: 1.0000000e+005
select Convert(varchar(32),
round(cast('123456' as Float), -5),
1
)
Any help would be greatly appreciated.