RE: Formula to Round to Closest Half Dollar

Author: Jack Skelley

Posted: 2011-08-19 at 11:06:24

Jerry

How about

x= IIF(x+.5> INT(x),INT(x+.5),INT(x))

Jack

Jack Skelley

Senior Director, Programming/Computer Operations

New Jersey Devils

(973)757-6164

JSkelley@newjerseydevils.com ________________________________________

From: profoxtech-bounces@leafe.com [profoxtech-bounces@leafe.com] on behalf of Jerry Foote [jerryfoote@bellsouth.net]

Sent: Friday, August 19, 2011 10:43 AM

To: profoxtech@leafe.com

Subject: Formula to Round to Closest Half Dollar

What is vfp formula to Round amount to Closest Half Dollar.

Example to round 3.62 to 3.50

Or 3.45 to 3.00

Always to the floor of the decimal part to .50

Just brain stressed to figure the best way.

Thanks Jerry

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/7D9E7F72B813014C8FD022CF04F820ED0842A2@EX08.drdad.thenewarkarena.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jack Skelley