PocketC numerical rounding

Discuss PocketC for Palm OS (including Desktop Edition)

Postby mpontuti on Sun Mar 11, 2001 11:17 pm

Currently I am developing an application which incorporates some numerical calculations. This application makes use of the MathLib Library functions. My Question is...automatic rounding, It seems anything greater than 7 significant digits is all that i can obtain. Can I achieve greater accuracy ? Thanks
Posts: 8
Joined: Sun Mar 11, 2001 11:07 pm

Postby wolfgang on Mon Mar 12, 2001 5:33 am


seven digits is about the limit for PocketC's 32 bit floating point values. But there is a remedy:

I developed some PocketC code to perform integer and floating point operations (+, -, *, /, comparison) with an arbitrary number of digits. It's all written in PocketC, and the source code is freely available from my website:


(go to the resources section).

Composing music on the PocketPC! - http://www.pdamusician.com
Posts: 281
Joined: Tue Dec 12, 2000 4:22 am
Location: USA

Postby mpontuti on Tue Mar 13, 2001 1:01 am

Thanks for the clarification wolfgang! I will be sure to check out the resource section of your page.
Posts: 8
Joined: Sun Mar 11, 2001 11:07 pm

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 1 guest