I have to loop through a range of numbers starting with 300.0000 and ending with 301.9999
then do a check with some sql code to see if each number in the loop exist.
The problem I am having is that I was using
For i As Integer = 1 To 300
Before and it worked well with whole numbers but when I use
For i As Integer = 300.0000 To 301.9999
i becomes 300 (drops the trailing zero's and now loops 300, 301 instead of 300.0000,300.0001, 300.0002
Does anyone have any idea how I can force my code to keep the 0's after the "." or another way perhaps to achieve my goal?
Please bear in mind I am a bit of a newby still.