There is no Palm supported way to format decimal to a display format unless you can use scientific notation (and few do). So it is best bet to write your own routine to convert a float or double to a string (you won't need the float library to do this). Just use the regular float or double type for your variables and use your own formatting routine. Hint: you can search this forum's archive to get previously posted examples.
double a; char strMyOutput[12]; a = 59152.0/1000.0 // Note the decimal is required for proper type conversion strMyOutput = MyFormatDouble(a); // Where MyFormatDouble() is written by you or double a,b,result; char strMyOutput[12]; a = 59152; b = 1000; result = a/b; strMyOutput = MyFormatDouble(a); // Where MyFormatDouble() is written by you ----- Original Message ----- From: "Marcio Pacheco" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, January 22, 2002 1:07 PM Subject: FloatMgr > Hello, > > How can I write to the Palm screen the result of this following command: > > FlpFloat Temp=59152/1000; > > I have tryed to use the FloatMgr.h library but I didn't have good results. > > Tanks > > > _________________________________________________________________ > Converse com amigos on-line, experimente o MSN Messenger: > http://messenger.msn.com.br > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
