I have to manage doubles that go in a range of:
from 0,000001
to 999.999,999999
What I want to achieve is to reduce this number taking in account only the 6 more important digits.
This means that for the number: 100.000,123
I want to get 100.000
Whereas for the number: 12,123456
I want to get 12,1234
And for 0,123456
I want to get 0,123456
And for 0'000001
I want to get 0'000001
Any clever procedure to get to it? Thanks!