sql - Minimize the length of number to fixed length -


I need to reduce the length of the digit with a fixed value of 3 to decimal point 1

Ex: Calculate value of after @ a = 45689.45

Now I need to get the value of @ A = 45.6 if the value is less then 100 or if it is 89.63 then I do not need to change it.

The final value of @a should be a decimal (<3)

How about:

  case when @ a & gt; = 100 then round (@ A / Power (10, flooring (log 10 (AA)) - 1), 1, 1) second @ a  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -