Found it. The library was being called, but hadn't been loaded. I'm
surprised there was no error or crash...
I ended up just linking the two functions (floor and ceil) in directly.
Chris Bruner
Compulife Software Inc.
==============================================
----- Original Message -----
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Tuesday, October 25, 2005 2:08 AM
Subject: Re: floor doesn't work?
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/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/