Hi,
I realize this is probably a basic question, but I ask your help anyways.
I have an equation, and I need to multiply an Int16 by a float, with the
answer also being a float. However, the answer seems to come out to zero.
My only guess is that it doesn't like multiplying the Int and the float.
My function uses two equations - the first divides a float by an Int16, but
works in another function, and is copied directly.
The equations are as follows:
pixelSizeX = (eastMax - eastMin) / extentX;
easting = eastMin + (pixelSizeX * ptX);
I know that ptX is not zero, and pixelSizeX cannot be zero (the variables
are all assigned within the equation and will not equal zero).
I'm using PRC-Tools for development, if that may affect it all.
I know it may be a basic question, but I'm hoping a second (third, fourth,
etc) pair of eyes might see the problem.
Thanks,
Sara
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/