The following sql returns the following: "1E-07" How can I get the select @data to return the original value of '0.0000001' without the exponent being applied and displayed?
DECLARE @data float
SET @data = '0.0000001'
select @data
Thanks George! Either cast or convert works, so long as you specify the scale and precision. Then you have the possibility of trailing zeros to work with.
0.00000010000000000000
0.000000100
DECLARE @data float
SET @data = '0.0000001'
select cast(@data as decimal(20,20))
select convert(decimal(9,9),@data)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.