If you know the number of decimal places you require you can round the number yourself. i.e. if you require 2 places use: RoundedNo = 3,213,123.4590 + 0.005 you will get 3,213,123.46 (ignoring the decimals places beyond the 2nd) If you are working with money, you should stick with integers as you will loose precision (and change). Either scale a long or use two integers.
----- Original Message ----- From: "Mihai Ciornei" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 2:39 AM Subject: Round... There is any way(function) in CodeWarrior 9.2 to round a double? Something like "round(3.213.123,4598 ; precision) = 3.213.123,46..." without using strings. I tried: #include <math.h> double round(double) but no use. Thanks for any help I get. Regards, Ciornei Mihai - Bogdan, Analyst programmer TRANSART ltd (www.transart.ro) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
