Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:112)
OrbWorks Community Forum • View topic - Help! Same App Different Results!
Page 1 of 1

PostPosted: Sun Feb 19, 2006 5:10 pm
by tonyhunterajh
I also post this on PocketC forum...

I have an app that calculates float numbers one way on the POSE (running OS 4.x M505) and calculates another way on my Tungsten|E. The numbers are way different between the two. I made sure that both environments have the same version of Mathlib.

My app calulates the amount of time it will take to travel certain distances at an average MPH, Light Speed, Sound Speed or 1 Mile Per Second. The app returns results in Years, Months, Days, Hours, Minutes and Seconds.

On POSE, I enter <b>1000000000 Miles To Travel</b> and get the following results:

<b>Light Speed...</b>
Years: 0 Months: 7 Days: 10 Hours: 14 Minutes: 40 Seconds: 42

<b>Sound Speed...</b>
Years: 175 Months: 7 Days: 14 Hours: 10 Minutes: 41 Seconds: 39

<b>1 Mile Per Second...</b>
Years: 31 Months: 8 Days: 15 Hours: 12 Minutes: 35 Seconds: 8

On Palm Tungsten|E device, I enter <b>1000000000 Miles To Travel</b> and get the following results:

<b>Light Speed...</b>
Years: 0 Months: 7 Days: 10 Hours: 14 Minutes: 40 Seconds: 42

<b>Sound Speed...</b>
Years: 4 Months: 0 Days: 7 Hours: 12 Minutes: 24 Seconds: 11

<b>1 Mile Per Second...</b>
Years: 2 Months: 3 Days: 15 Hours: 4 Minutes: 41 Seconds: 39

Does anyone have any ideas why this app would produce different results? The code is exactly the same. I am running the .prc in both places.

Tony

PostPosted: Mon Feb 20, 2006 3:24 am
by tonyhunterajh
It must have been my algorithm. I changed some things and now it works in both environments.

Tony