Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Convert Numbers

$
0
0

Hi,

I have a variable called B_Men that outputs numbers but when reviewing the output, I get numbers such as 2e+006, 1.85833e+006 etc of which I don't want. 

I have added in the code ltrim(str(B_Men),25)) which seems to give me the correct output but not really sure what impact this could have if I need to calculate this variable with another. 

Is this the best way to handle these numbers, or is there a better method please?




Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>