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.
How about using cast
with decimal
and scale of 4. Something like:
select cast(101.32650000 as decimal(10,4));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With