Reputation: 138
I have a data that is101.32650000
and I want to get 101.3265
only ... I tried using right function, but the disadvantage is that digits before decimal can vary.
Upvotes: 4
Views: 5214
Reputation: 62841
How about using cast
with decimal
and scale of 4. Something like:
select cast(101.32650000 as decimal(10,4));
Upvotes: 8