Rounding sort of ....

Ken Cole ken.m.cole at gmail.com
Tue Mar 6 16:24:04 PST 2018


Doesn’t converting a ,.2 edit to a ,.0 edit do that automatically?

Or, mid off the cents and do your test and if <= .50 mid off the $ part.

Ken

On Wed, 7 Mar 2018 at 10:57 am, Jose Lerebours via Filepro-list <
filepro-list at lists.celestial.com> wrote:

> Is there not a ceiling function in filePro?
>
> One would think that you have it covered by simply reading your post.  I
> mean, you even provide the [if] statements.
>
> if: frac(aa) gt ".50"
> 'http://www.fileprotraining.com/WebHelp/Filepro/FRAC().htm
>
> then: aa=int(aa)+"1";
> 'http://www.fileprotraining.com/WebHelp/Filepro/INT().htm
>
>
> I think ceiling may be a good option as well
>
> http://www.fileprotraining.com/WebHelp/Filepro/CEIL.htm
>
>
>
> On 03/06/2018 06:47 PM, Wayne Smith via Filepro-list wrote:
> > I have a client that wants to take a whole 10,.2 number and if the cents
> > are ge .51 add a 1.00 to the total calculation.
> >
> > if the cents are le .50  then take away cents and leave whole numbers.
> >
> > I have tried some simple things ....in input.prc with no luck ...the list
> > is very slow ....one of you brains out there must know a simple math
> trick
> > in fp to solve this ....thanks ahead of time.
> >
> > Windows 10,  FP 5.8
> >
>
> --
> Jose D. Lerebours
> 954-559-7186
> https://www.cargosaas.com
> http://www.ezbookeep.com
> http://www.ezdaemon.com
> http://www.fp2php.com
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20180307/4eef8be1/attachment.html>


More information about the Filepro-list mailing list