Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Getting different answer while using PARSENAME #2204
When i am trying the below query, getting different answers.
what is the difference in these query. What is doing in depth.
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@aksajith This issue has nothing to do with
DECLARE @num3 decimal(26,10) = 152.00685100; SELECT CONVERT(NVARCHAR(500), @num3), -- 152.0068510000 CONVERT(NVARCHAR(500), CONVERT(FLOAT, @num3)), -- 152.007 STR(@num3, 18, 10); -- 152.0068510000
You might also want to check out the STR built-in function, as it converts number types into
Also, I highly recommend using
Take care, Solomon..