Many thanks for your answers, I tried both and the one that it's close to what I need is bartus11's code. However, I forgot to say that I have a range of values from 0 to 100 000. In fact, this code worked well for most of my values (and also more than 100 000), but I have problems in the range between 99.5 and 999.4. For example, if I run the code with:
However, from 99.5 to 999.4, I get 000. In this case, for instance, I expect to have with the number 459.3244, just 450.
In the case this code coulnd't be modified to cover the whole range (from 0 to 100 000), how could the script be modified to cover the range from 99.5 to 999.4?
I'm very grateful for your excellent support, many thanks again,