Re: VFP Rounding

Author: Richard Quilhot

Posted: 2010-05-04 at 18:13:50

You could always multiply by 100, apply the integer function, then divide

by 100.

Richard E. Quilhot C.N.A.

quilhotr@gmail.com

On Tue, May 4, 2010 at 6:00 PM, Tina Currie <tina@datahouse.com.au> wrote:

> Hi all,

>

>

>

> Hoping you can shed some light for me. I've got a calculation that I'm

> doing over 4 fields and then I convert the result to character by applying

> STR() function - doing this to a length of 20 and decimal places of 2.

> This

> rounds UP my result. I don't want this to happen. Just want it to give me

> the result to 2 decimal places.

>

>

>

> Is this possible in Fox?

>

>

>

> TIA,

>

>

>

> Tina

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

> --- 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/j2zbfe30b7d1005041513p96ecec11k2ed039deb114780c@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.

©2010 Richard Quilhot