There may be a built-in function that I don't know about, but the following
should work

int round (float val)
  {
  return ((int) (val+0.5))
  }



....::....::....::....::....::....::....
Mike Walters
Rose Software
[EMAIL PROTECTED]
www.rosesw.com
....................................



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Johnathan Smith
Sent: Thursday, December 27, 2001 3:38 PM
To: Palm Developer Forum
Subject: Rounding Up


if I do 212 / 20 I would like my out come to be 11.  I
am getting 10.6.

 How can I make all number greater then .5 round up
and all numbers less then .5 round down??



__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

--
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/

Reply via email to