--- In [EMAIL PROTECTED], "Eric W. Sirko" <[EMAIL PROTECTED]> wrote:
> Sara, it's not clear from your post which variables are integers and which
> are floats. Thus I can't see what the problem is.
Sorry, I didn't want to fill the newsgroup with lots of code, and left that
out accidentely.
Here is the full function (it's short!)
static float PixelToEasting(Int16 ptX){
float eastMin, eastMax, easting;
float pixelSizeX;
Int32 extentX;
eastMin = 325000.61; //topleft
eastMax = 326530.80; //bottom right
extentX = 710;
pixelSizeX = (eastMax - eastMin) / extentX;
easting = eastMin + (pixelSizeX * ptX);
return easting;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/