G
Guest
I divide the number 75 by several numbers, however many of the resulting
numbers have a misplaced decimal point. That is, 75 / 999 = 7.507
(Incorrect) . But 75 / 1000 = .075 (Correct). And then 75/ 1001 = 7.492
Here is the code. Any help is appreciated:
Dim dblVal As Double, x as integer
Open "C:\tmp.txt" For Output As #1
For x = 999 To 2000
dblVal = 75 / x
Print #1, dblVal & Chr(9) & x
Next x
Close #1
numbers have a misplaced decimal point. That is, 75 / 999 = 7.507
(Incorrect) . But 75 / 1000 = .075 (Correct). And then 75/ 1001 = 7.492
Here is the code. Any help is appreciated:
Dim dblVal As Double, x as integer
Open "C:\tmp.txt" For Output As #1
For x = 999 To 2000
dblVal = 75 / x
Print #1, dblVal & Chr(9) & x
Next x
Close #1