I am getting value of 40836.0 generating from another program. Now I wanted to move decimal at -3, turning it into 40.8. How do I do this with code?

I tried divididng by 1000 and I get round off to 41.0... Actually I want precise number "40.8. Anyone?