Basically I have a number say 5.112 I want to subtract it in each iteration by 0.001 like 5.111, 5.110, 5.109, 5.108 etc.
Currently, I am thinking of using the split method to separate the number form decimal point and then subtract the 1st index by 1 and join.
I am just wondering If there is any other better way of doing this.