I posted this initially in the wrong forum so excuse the double post.

I am working with graphing some functions and I need some clarity on the following code snippet.

```
For x = -175 To 175 Step 0.1
y = -CSng((x ^ 2) / 100)
pts.Add(New PointF(x, y))
Next
gPath.AddLines(pts.ToArray())
For x = -175 To 175 Step 0.1
y = -CSng((x ^ 2) / 100)
g.DrawLine(Pens.LightGray, New Point(x,-y), New Point(x, y))
Next
```

In the first code snippet PoinF appears to store the X value as an integer and the Y value as a decimal number which is great, no problem.

For example the x and y values are like:

X Y

-175 306.25

but in the second code snippet New point has to be only integer??

Can someone explain to me why thats the case? Perhaps the point function allows decimals and the Drawline does not?

Or does the PointF function convert automatically to integer?

And is one method better to use then the other since I am also using antialiasing to smooth my graphing functions more smoothly?

Thank you in advance

Les