At 12:37 AM 10/25/2005, you wrote:
floor is defined as
double floor(double)
determines the largest integer not greater than x
Simple test:

double value = 100000;
double result = floor(value);

I get result very close to 0.
Shouldn't it be 100000?

Try

double value = 100000.0;

It's possible that you're getting oddness with int-to-float conversions because of the 16-bit int size on Palm OS.


-- Ben Combee, Senior Software Engineer, Palm, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to