Index
2011-08-19 10:43Jerry Foote : Formula to Round to Closest Half Dollar
2011-08-19 10:58Paul Hill : Re: Formula to Round to Closest Half Dollar
2011-08-19 11:02Jerry Foote : RE: Formula to Round to Closest Half Dollar
2011-08-19 11:06Jack Skelley : RE: Formula to Round to Closest Half Dollar
2011-08-20 09:09Gérard Lochon : Re: Formula to Round to Closest Half Dollar
2011-08-20 10:11Jerry Foote : RE: Formula to Round to Closest Half Dollar
Back to top
Formula to Round to Closest Half Dollar

Author: Jerry Foote

Posted: 2011-08-19 10:43:45   Link

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

---

_______________________________________________

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/FA336792DF504AB8A1141298530CC552@jerryfootePC

** 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 Jerry Foote
Back to top
Re: Formula to Round to Closest Half Dollar

Author: Paul Hill

Posted: 2011-08-19 10:58:54   Link

Hi Jerry,

Try something like this:

FLOOR(3.45/0.5)*0.5

3.0

FLOOR(3.62/0.5)*0.5

3.5

Paul

On Fri, Aug 19, 2011 at 3:43 PM, Jerry Foote <jerryfoote@bellsouth.net> wrote:

> 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/CADwx0+JxHkqBi0VWVrrC0KrWvS+-ZGoiCWaX_bRvAWv479_pQw@mail.gmail.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 Paul Hill
Back to top
RE: Formula to Round to Closest Half Dollar

Author: Jerry Foote

Posted: 2011-08-19 11:02:15   Link

Thanks for the code, it would have taken me hours if ever.

Thanks Jerry

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Paul Hill

Sent: Friday, August 19, 2011 9:59 AM

To: ProFox Email List

Subject: Re: Formula to Round to Closest Half Dollar

Hi Jerry,

Try something like this:

FLOOR(3.45/0.5)*0.5

3.0

FLOOR(3.62/0.5)*0.5

3.5

Paul

On Fri, Aug 19, 2011 at 3:43 PM, Jerry Foote <jerryfoote@bellsouth.net>

wrote:

> 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/F30A3CBB99004E85B5662F90A80138DB@jerryfootePC

** 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 Jerry Foote
Back to top
RE: Formula to Round to Closest Half Dollar

Author: Jack Skelley

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

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
Back to top
Re: Formula to Round to Closest Half Dollar

Author: Gérard Lochon

Posted: 2011-08-20 09:09:33   Link

> Jerry

> How about

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

> Jack

>

if x > 0, x >= INT(x)

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

So IIF(x+.5> INT(x),INT(x+.5),INT(x)) will always return INT(x+.5) !!

_______________________________________________

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/D851D2B407B64C98BB62949115A37543@MuriellePC

** 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 Gérard Lochon
Back to top
RE: Formula to Round to Closest Half Dollar

Author: Jerry Foote

Posted: 2011-08-20 10:11:40   Link

Thanks for the input.

Jerry

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Gérard Lochon

Sent: Saturday, August 20, 2011 8:10 AM

To: ProFox Email List

Subject: Re: Formula to Round to Closest Half Dollar

> Jerry

> How about

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

> Jack

>

if x > 0, x >= INT(x)

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

So IIF(x+.5> INT(x),INT(x+.5),INT(x)) will always return INT(x+.5) !!

[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/52FFC662885A44CEBE8C647FD69CC9AB@jerryfootePC

** 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 Jerry Foote