Hi all,
I am trying to get this function here to do what I want, for the most part it works fine, but what I don't understand is some of the values that it is producing. What is happening is at 5.4 the next number is 5.499999999, so from 3.5 to 5.4 works fine, but from 5.4 to 9.9 I have at least 15 decimal places....am I using the right data type? what I would like to have is 3.5 to 10.5. counting by .1
Thanks
Darryl
Public Function getPhValue() as double()
dim x(1 to 75) as double
dim i val as double
dim i as double
ival=3.5
For i = 1 to 75
x(i)=ival
debug.print ival
ival=ival+ 0.1
next i
getphvalue=x
end function



