I have varchar value 4890
And i am casting it to decimal and dividing by 100000
Its output is 0.0489000
But when i calculated the same on calculator it gives 0.04890
And i think it should be 0.04890
Please help me out
Thanking in Advance

it gives 0.04890
And i think it should be 0.04890

If you are getting what is expected, what is the problem ?

It should be 0.04890 not 0.0489000

what is the data type of target variable ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.