At 02:16 PM 10/19/2001 -0700, Ed Van Vliet wrote: >I am trying to get a floating point number to display in a field with two >decimal places.
You and me both! >The code below gets a number entered by a user and adds it to a total. The >total is subsequently displayed. >It works OK but the answer gets displayed as x.yyyyyyyye, instead of x.yy. >As an example, if the user enters the numbers 100.50 and 200.25, >the answer is displayed as 3.0075000e instead of 300.75. I have not been >able to find any routines that provide the decimal alignment that I want and >I can't find the >definition of FlpDouble which, I am sure, is a structure typedef. The definition of FlpFToA is that it produces a scientific notation string. I also want to know if there are convenient routines somewhere to format floating point numbers in normal non-scientific decimal notation. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
