Rounding sort of ....
Jose Lerebours
fpgroups at gmail.com
Tue Mar 6 15:56:44 PST 2018
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
More information about the Filepro-list
mailing list